cleaned up responseType calls, addresses #451

pull/544/merge
Justin Richer 2013-11-27 11:03:15 -05:00
parent df511a81cc
commit a24eadeb11
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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);