AuthenticationResponseParser does not support relative URIs as documented

Issue #162 invalid
Samuel Gulliksson created an issue

The documentation for com.nimbusds.openid.connect.sdk.AuthenticationResponseParser.parse(URI) claims support for relative URIs of the form "http://?code=Qcb0Orv1...&state=af0ifjsldkj", but when using such an URI the following stacktrace is the result:

java.lang.IllegalArgumentException: The redirection URI must not be null
    at com.nimbusds.oauth2.sdk.AuthorizationResponse.<init>(AuthorizationResponse.java:62)
    at com.nimbusds.oauth2.sdk.AuthorizationSuccessResponse.<init>(AuthorizationSuccessResponse.java:83)
    at com.nimbusds.oauth2.sdk.AuthorizationSuccessResponse.parse(AuthorizationSuccessResponse.java:215)
    at com.nimbusds.openid.connect.sdk.AuthenticationSuccessResponse.parse(AuthenticationSuccessResponse.java:215)
    at com.nimbusds.openid.connect.sdk.AuthenticationResponseParser.parse(AuthenticationResponseParser.java:48)
    at com.nimbusds.openid.connect.sdk.AuthenticationResponseParser.parse(AuthenticationResponseParser.java:100)

Comments (6)

  1. Log in to comment