added REQUIRED response types to discovery doc. Also, fixed 2 typos in the list of supported grant types.

pull/369/merge
William Kim 2013-06-27 13:47:16 -04:00 committed by Justin Richer
parent 2a92185433
commit 42027e451c
1 changed files with 2 additions and 2 deletions

View File

@ -221,8 +221,8 @@ public class DiscoveryEndpoint {
m.put("jwks_uri", baseUrl + "jwk");
m.put("registration_endpoint", baseUrl + "register");
m.put("scopes_supported", scopeService.toStrings(scopeService.getDynReg())); // these are the scopes that you can dynamically register for, which is what matters for discovery
m.put("response_types_supported", Lists.newArrayList("code", "token"));
m.put("grant_types_supported", Lists.newArrayList("authorization_cide", "implicit", "urn:ietf:params:oauth:grant-type:jwt-bearerurn:ietf:params:oauth:grant-type:jwt-bearer", "client_credentials", "urn:ietf:params:oauth:grant_type:redelegate")); // we also support client_credentials and chaining, but OIDC doesn't specify those so we'll leave them off
m.put("response_types_supported", Lists.newArrayList("code", "token", "id_token", "id_token token"));
m.put("grant_types_supported", Lists.newArrayList("authorization_code", "implicit", "urn:ietf:params:oauth:grant-type:jwt-bearer", "client_credentials", "urn:ietf:params:oauth:grant_type:redelegate")); // we also support client_credentials and chaining, but OIDC doesn't specify those so we'll leave them off
//acr_values_supported
m.put("subject_types_supported", Lists.newArrayList("public"));
//userinfo_signing_alg_values_supported