Search in sources :

Example 1 with UMAProviderMetadata

use of io.gravitee.am.gateway.handler.uma.service.discovery.UMAProviderMetadata in project gravitee-access-management by gravitee-io.

the class UMADiscoveryServiceImpl method getConfiguration.

@Override
public UMAProviderMetadata getConfiguration(String basePath) {
    OpenIDProviderMetadata oidcMetadata = oidcDiscoveryService.getConfiguration(basePath);
    UMAProviderMetadata umaMetadata = new UMAProviderMetadata();
    // Set Oauth2 metadata values
    umaMetadata.setIssuer(oidcMetadata.getIssuer()).setAuthorizationEndpoint(oidcMetadata.getAuthorizationEndpoint()).setTokenEndpoint(oidcMetadata.getTokenEndpoint()).setJwksUri(oidcMetadata.getJwksUri()).setRegistrationEndpoint(oidcMetadata.getRegistrationEndpoint()).setScopesSupported(oidcMetadata.getScopesSupported()).setResponseTypesSupported(oidcMetadata.getResponseTypesSupported()).setResponseModesSupported(oidcMetadata.getResponseModesSupported()).setGrantTypesSupported(oidcMetadata.getGrantTypesSupported()).setTokenEndpointAuthMethodsSupported(oidcMetadata.getTokenEndpointAuthMethodsSupported()).setTokenEndpointAuthSigningAlgValuesSupported(oidcMetadata.getTokenEndpointAuthSigningAlgValuesSupported()).setServiceDocumentation(oidcMetadata.getServiceDocumentation()).setUiLocalesSupported(oidcMetadata.getUiLocalesSupported()).setOpPolicyUri(oidcMetadata.getOpPolicyUri()).setOpTosUri(oidcMetadata.getOpTosUri()).setRevocationEndpoint(oidcMetadata.getRevocationEndpoint()).setRevocationEndpointAuthMethodsSupported(oidcMetadata.getTokenEndpointAuthMethodsSupported()).setRevocationEndpointAuthSigningAlgValuesSupported(oidcMetadata.getTokenEndpointAuthSigningAlgValuesSupported()).setIntrospectionEndpoint(oidcMetadata.getIntrospectionEndpoint()).setIntrospectionEndpointAuthMethodsSupported(Arrays.asList(CLIENT_SECRET_BASIC, CLIENT_SECRET_POST, CLIENT_SECRET_JWT, PRIVATE_KEY_JWT, TLS_CLIENT_AUTH, SELF_SIGNED_TLS_CLIENT_AUTH)).setIntrospectionEndpointAuthSigningAlgValuesSupported(JWAlgorithmUtils.getSupportedIntrospectionEndpointAuthSigningAlg()).setCodeChallengeMethodsSupported(oidcMetadata.getCodeChallengeMethodsSupported());
    // Set UMA2 metadata values
    umaMetadata.setClaimsInteractionEndpoint(getEndpointAbsoluteURL(basePath, CLAIMS_INTERACTION_PATH)).setUmaProfilesSupported(Collections.emptyList()).setPermissionEndpoint(getEndpointAbsoluteURL(basePath, PERMISSION_PATH)).setResourceRegistrationEndpoint(getEndpointAbsoluteURL(basePath, RESOURCE_REGISTRATION_PATH));
    return umaMetadata;
}
Also used : UMAProviderMetadata(io.gravitee.am.gateway.handler.uma.service.discovery.UMAProviderMetadata) OpenIDProviderMetadata(io.gravitee.am.gateway.handler.oidc.service.discovery.OpenIDProviderMetadata)

Aggregations

OpenIDProviderMetadata (io.gravitee.am.gateway.handler.oidc.service.discovery.OpenIDProviderMetadata)1 UMAProviderMetadata (io.gravitee.am.gateway.handler.uma.service.discovery.UMAProviderMetadata)1