Interface OAuth2ProviderService


public interface OAuth2ProviderService
  • Method Details

    • listClients

      List<Client> listClients()
      Gets all Clients
      Returns:
      the clients stored in the system
    • findClient

      Optional<Client> findClient(String clientId)
      Find the client using the clientId
      Returns:
      the found Client or empty if not found
    • findClientByEntityId

      default Optional<Client> findClientByEntityId(String clientEntityId)
      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