public class OAuth2UserApplications extends Object
Constructor and Description |
---|
OAuth2UserApplications(TokenStore tokenStore,
OAuth2ProviderSettingsFactory oAuth2ProviderSettingsFactory,
ClientRegistrationStore clientRegistrationStore,
ContextHelper contextHelper,
Debug debug) |
Modifier and Type | Method and Description |
---|---|
org.forgerock.util.promise.Promise<org.forgerock.json.resource.ResourceResponse,org.forgerock.json.resource.ResourceException> |
deleteInstance(org.forgerock.services.context.Context context,
String resourceId)
Allows users to revoke an OAuth2 application.
|
org.forgerock.util.promise.Promise<org.forgerock.json.resource.QueryResponse,org.forgerock.json.resource.ResourceException> |
query(org.forgerock.services.context.Context context,
org.forgerock.json.resource.QueryResourceHandler queryHandler,
org.forgerock.json.resource.QueryRequest request)
Allows users to query OAuth2 applications that they have given their consent access to and that have active
access and/or refresh tokens.
|
@Inject public OAuth2UserApplications(TokenStore tokenStore, OAuth2ProviderSettingsFactory oAuth2ProviderSettingsFactory, ClientRegistrationStore clientRegistrationStore, ContextHelper contextHelper, @Named(value="frRest") Debug debug)
public org.forgerock.util.promise.Promise<org.forgerock.json.resource.QueryResponse,org.forgerock.json.resource.ResourceException> query(org.forgerock.services.context.Context context, org.forgerock.json.resource.QueryResourceHandler queryHandler, org.forgerock.json.resource.QueryRequest request)
Applications consist of an id, a name (the client id), a set of scopes and an expiry time. The scopes field is the union of the scopes of the individual access/refresh tokens. The expiry time is the time when the last access/refresh token will expire, or null if the server is configured to allow tokens to be refreshed indefinitely.
context
- The request context.queryHandler
- The query handler.request
- Unused but necessary for used of the @Query
annotation.public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ResourceResponse,org.forgerock.json.resource.ResourceException> deleteInstance(org.forgerock.services.context.Context context, String resourceId)
context
- The request context.resourceId
- The id of the OAuth2 client.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.