Class Auth0Authentication

java.lang.Object
io.camunda.identity.sdk.authentication.AbstractAuthentication
io.camunda.identity.sdk.impl.auth0.authentication.Auth0Authentication
All Implemented Interfaces:
Authentication

public class Auth0Authentication extends AbstractAuthentication
  • Constructor Details

  • Method Details

    • authorizeUriBuilder

      public AuthorizeUriBuilder authorizeUriBuilder(String redirectUri)
      Description copied from interface: Authentication
      Returns a new Authorize uri builder. It is used to build the authorize uri for user authentication.
      Parameters:
      redirectUri - the redirect uri
      Returns:
      the authorize uri builder
    • exchangeAuthCode

      public Tokens exchangeAuthCode(AuthCodeDto authCodeDto, String redirectUri) throws CodeExchangeException
      Description copied from interface: Authentication
      Exchanges provided auth code with access tokens. The provided redirect uri argument must match the redirect uri that was used to build the authorize uri.
      Parameters:
      authCodeDto - the auth code dto
      redirectUri - the redirect uri
      Returns:
      the tokens
      Throws:
      CodeExchangeException - if code exchange fails
    • requestFreshToken

      protected Tokens requestFreshToken(String audience)
      Specified by:
      requestFreshToken in class AbstractAuthentication
    • renewToken

      public Tokens renewToken(String refreshToken)
      Description copied from interface: Authentication
      Exchanges provided refresh token with an access tokens.
      Parameters:
      refreshToken - refresh token used for the request
      Returns:
      the tokens
    • revokeToken

      public void revokeToken(String refreshToken)
      Description copied from interface: Authentication
      Logs out from Identity backend. This will invalidate the given refresh token and refresh tokens issued for other applications during the same session. The user's session or access token still has to be deleted by the client application.
      Parameters:
      refreshToken - refresh token used for the request
    • isM2MToken

      public boolean isM2MToken(String token)
      Description copied from interface: Authentication
      Checks if the token passed in is considered an M2M token.
      Parameters:
      token - the token
      Returns:
      true if the token is a M2M token, else false
    • getClientId

      public String getClientId(String token)
      Description copied from interface: Authentication
      Gets the client ID associated to the token
      Parameters:
      token - the token
      Returns:
      the clientID
    • getPermissions

      protected List<String> getPermissions(com.auth0.jwt.interfaces.DecodedJWT token, String audience)
      Specified by:
      getPermissions in class AbstractAuthentication
    • getAssignedOrganizations

      public Map<String,Set<String>> getAssignedOrganizations(com.auth0.jwt.interfaces.DecodedJWT token)
    • jwkProvider

      protected com.auth0.jwk.JwkProvider jwkProvider()
      Specified by:
      jwkProvider in class AbstractAuthentication
    • wellKnownConfiguration

      protected WellKnownConfiguration wellKnownConfiguration()
      Specified by:
      wellKnownConfiguration in class AbstractAuthentication
    • isRevokeAvailable

      protected boolean isRevokeAvailable()
      Specified by:
      isRevokeAvailable in class AbstractAuthentication
    • isSingleSignOutAvailable

      protected boolean isSingleSignOutAvailable()
      Specified by:
      isSingleSignOutAvailable in class AbstractAuthentication