KEYCLOAK-16931 Authorization Server Metadata of
introspection_endpoint_auth_methods_supported and introspection_endpoint_auth_signing_alg_values_supported
This commit is contained in:
parent
e7a3dc59ab
commit
33bb1fda38
3 changed files with 30 additions and 0 deletions
|
@ -91,6 +91,12 @@ public class OIDCConfigurationRepresentation {
|
|||
@JsonProperty("token_endpoint_auth_signing_alg_values_supported")
|
||||
private List<String> tokenEndpointAuthSigningAlgValuesSupported;
|
||||
|
||||
@JsonProperty("introspection_endpoint_auth_methods_supported")
|
||||
private List<String> introspectionEndpointAuthMethodsSupported;
|
||||
|
||||
@JsonProperty("introspection_endpoint_auth_signing_alg_values_supported")
|
||||
private List<String> introspectionEndpointAuthSigningAlgValuesSupported;
|
||||
|
||||
@JsonProperty("claims_supported")
|
||||
private List<String> claimsSupported;
|
||||
|
||||
|
@ -298,6 +304,23 @@ public class OIDCConfigurationRepresentation {
|
|||
this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported;
|
||||
}
|
||||
|
||||
public List<String> getIntrospectionEndpointAuthMethodsSupported() {
|
||||
return introspectionEndpointAuthMethodsSupported;
|
||||
}
|
||||
|
||||
public void setIntrospectionEndpointAuthMethodsSupported(List<String> introspectionEndpointAuthMethodsSupported) {
|
||||
this.introspectionEndpointAuthMethodsSupported = introspectionEndpointAuthMethodsSupported;
|
||||
}
|
||||
|
||||
public List<String> getIntrospectionEndpointAuthSigningAlgValuesSupported() {
|
||||
return introspectionEndpointAuthSigningAlgValuesSupported;
|
||||
}
|
||||
|
||||
public void setIntrospectionEndpointAuthSigningAlgValuesSupported(
|
||||
List<String> introspectionEndpointAuthSigningAlgValuesSupported) {
|
||||
this.introspectionEndpointAuthSigningAlgValuesSupported = introspectionEndpointAuthSigningAlgValuesSupported;
|
||||
}
|
||||
|
||||
public List<String> getClaimsSupported() {
|
||||
return claimsSupported;
|
||||
}
|
||||
|
|
|
@ -122,6 +122,8 @@ public class OIDCWellKnownProvider implements WellKnownProvider {
|
|||
|
||||
config.setTokenEndpointAuthMethodsSupported(getClientAuthMethodsSupported());
|
||||
config.setTokenEndpointAuthSigningAlgValuesSupported(getSupportedClientSigningAlgorithms(false));
|
||||
config.setIntrospectionEndpointAuthMethodsSupported(getClientAuthMethodsSupported());
|
||||
config.setIntrospectionEndpointAuthSigningAlgValuesSupported(getSupportedClientSigningAlgorithms(false));
|
||||
|
||||
config.setClaimsSupported(DEFAULT_CLAIMS_SUPPORTED);
|
||||
config.setClaimTypesSupported(DEFAULT_CLAIM_TYPES_SUPPORTED);
|
||||
|
|
|
@ -138,6 +138,11 @@ public class OIDCWellKnownProviderTest extends AbstractKeycloakTest {
|
|||
// Client authentication
|
||||
Assert.assertNames(oidcConfig.getTokenEndpointAuthMethodsSupported(), "client_secret_basic", "client_secret_post", "private_key_jwt", "client_secret_jwt", "tls_client_auth");
|
||||
Assert.assertNames(oidcConfig.getTokenEndpointAuthSigningAlgValuesSupported(), Algorithm.PS256, Algorithm.PS384, Algorithm.PS512, Algorithm.RS256, Algorithm.RS384, Algorithm.RS512, Algorithm.ES256, Algorithm.ES384, Algorithm.ES512, Algorithm.HS256, Algorithm.HS384, Algorithm.HS512);
|
||||
Assert.assertNames(oidcConfig.getIntrospectionEndpointAuthMethodsSupported(), "client_secret_basic",
|
||||
"client_secret_post", "private_key_jwt", "client_secret_jwt", "tls_client_auth");
|
||||
Assert.assertNames(oidcConfig.getIntrospectionEndpointAuthSigningAlgValuesSupported(), Algorithm.PS256,
|
||||
Algorithm.PS384, Algorithm.PS512, Algorithm.RS256, Algorithm.RS384, Algorithm.RS512, Algorithm.ES256,
|
||||
Algorithm.ES384, Algorithm.ES512, Algorithm.HS256, Algorithm.HS384, Algorithm.HS512);
|
||||
|
||||
// Claims
|
||||
assertContains(oidcConfig.getClaimsSupported(), IDToken.NAME, IDToken.EMAIL, IDToken.PREFERRED_USERNAME, IDToken.FAMILY_NAME, IDToken.ACR);
|
||||
|
|
Loading…
Reference in a new issue