@Singleton public class OpenIdConnectClientRegistrationService extends Object
Modifier and Type | Method and Description |
---|---|
org.forgerock.json.JsonValue |
createRegistration(String accessToken,
String deploymentUrl,
OAuth2Request request)
Creates an OpenId Connect client registration in the OAuth2 provider.
|
org.forgerock.json.JsonValue |
getRegistration(String clientId,
String accessToken,
OAuth2Request request)
Gets an OpenId Connect client registration from the OAuth2 provider.
|
public org.forgerock.json.JsonValue createRegistration(String accessToken, String deploymentUrl, OAuth2Request request) throws InvalidRedirectUri, InvalidClientMetadata, ServerException, UnsupportedResponseTypeException, AccessDeniedException, NotFoundException, InvalidPostLogoutRedirectUri
accessToken
- The access token for making the registration call.deploymentUrl
- The deployment url of the OAuth2 provider.request
- The OAuth2 request.InvalidRedirectUri
- If redirect urls are invalid.InvalidClientMetadata
- If client metadata is invalid.ServerException
- If any internal server error occurs.UnsupportedResponseTypeException
- If the requested response type is not supported by either the client
or the OAuth2 provider.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.AccessDeniedException
InvalidPostLogoutRedirectUri
public org.forgerock.json.JsonValue getRegistration(String clientId, String accessToken, OAuth2Request request) throws InvalidRequestException, InvalidClientMetadata, InvalidTokenException
clientId
- The client's id.accessToken
- The access token used to register the client.request
- The OAuth2 request.InvalidRequestException
- If either the request does not contain the client's id or the client fails to be
authenticated.InvalidClientMetadata
InvalidTokenException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.