Interface OAuth2ProviderService
public interface OAuth2ProviderService
-
Method Summary
Modifier and TypeMethodDescriptionfindClient(String clientId) Find the client using the clientIdfindClientByEntityId(String clientEntityId) Find the client using the client entity idGets the OAuth 2 server metadata: endpoints, response types supported, scopes supported etcGets all ClientsGets all the current users access tokensGets all the current users refresh tokens
-
Method Details
-
listClients
Gets all Clients- Returns:
- the clients stored in the system
-
findClient
Find the client using the clientId- Returns:
- the found Client or empty if not found
-
findClientByEntityId
Find the client using the client entity id- Returns:
- the found Client or empty if not found
- Since:
- 4.1.0
-
listCurrentUsersAccessTokens
List<AccessToken> listCurrentUsersAccessTokens()Gets all the current users access tokens- Returns:
- the tokens for the current user or an empty list
-
listCurrentUsersRefreshTokens
List<RefreshToken> listCurrentUsersRefreshTokens()Gets all the current users refresh tokens- Returns:
- the tokens for the current user or an empty list
-
getOAuth2AuthorizationServerMetadata
OAuth2AuthorizationServerMetadata getOAuth2AuthorizationServerMetadata()Gets the OAuth 2 server metadata: endpoints, response types supported, scopes supported etc- Returns:
- OAuth 2 server metadata
-