cleaned up responseType calls, addresses #451

pull/544/merge
Justin Richer 11 years ago
parent df511a81cc
commit a24eadeb11

@ -57,7 +57,7 @@ public class ServerConfiguration {
RECOMMENDED. URL of the OP's Dynamic Client Registration Endpoint [OpenID.Registration].
scopes_supported
RECOMMENDED. JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server
response_types_supported
REQUIRED. JSON array containing a list of the OAuth 2.0 response_type values that this server
supports. The server MUST support the code, id_token, and the token id_token response type values.
grant_types_supported

@ -100,9 +100,8 @@ public class DefaultOIDCTokenService implements OIDCTokenService {
}
// TODO: this ought to be getResponseType; issue #482
String responseType = request.getRequestParameters().get("response_type");
Set<String> responseTypes = request.getResponseTypes();
Set<String> responseTypes = OAuth2Utils.parseParameterList(responseType);
if (responseTypes.contains("token")) {
// calculate the token hash
Base64URL at_hash = IdTokenHashUtils.getAccessTokenHash(signingAlg, accessToken);

Loading…
Cancel
Save