Class MicrosoftAuthentication
java.lang.Object
io.camunda.identity.sdk.authentication.AbstractAuthentication
io.camunda.identity.sdk.impl.generic.GenericAuthentication
io.camunda.identity.sdk.impl.microsoft.MicrosoftAuthentication
- All Implemented Interfaces:
Authentication
-
Field Summary
Fields inherited from class io.camunda.identity.sdk.impl.generic.GenericAuthentication
jwkProviderFields inherited from class io.camunda.identity.sdk.authentication.AbstractAuthentication
configuration, JWKS_CACHE_LIFETIME_DAYS, JWKS_CACHE_SIZE, restClient, tokenCache, WELL_KNOWN_PATH -
Constructor Summary
ConstructorsConstructorDescriptionMicrosoftAuthentication(IdentityConfiguration configuration, RestClient restClient) -
Method Summary
Modifier and TypeMethodDescriptionauthorizeUriBuilder(String redirectUri) Returns a new Authorize uri builder.protected URIgenerateSingleSignOutUri(String callbackUrl) getClientId(String token) Gets the client ID associated to the tokenprotected UserDetailsgetUserDetails(com.auth0.jwt.interfaces.DecodedJWT token, String organizationId) booleanisM2MToken(String token) Checks if the token passed in is considered an M2M token.protected TokensrequestFreshToken(String audience) voidrevokeToken(String refreshToken) Logs out from Identity backend.Methods inherited from class io.camunda.identity.sdk.impl.generic.GenericAuthentication
exchangeAuthCode, fromAccessTokenDto, getAssignedOrganizations, getPermissions, isRevokeAvailable, isSingleSignOutAvailable, jwkProvider, renewToken, wellKnownConfigurationMethods inherited from class io.camunda.identity.sdk.authentication.AbstractAuthentication
decodeJWT, getGroups, getGroups, getGroupsInOrganization, getGroupsInOrganization, getGroupsInOrganization, getPermissions, getPermissions, isAvailable, requestToken, singleSignOut, singleSignOutUriBuilder, verifyAndDecode, verifyToken, verifyToken, verifyToken, verifyTokenIgnoringAudience
-
Constructor Details
-
MicrosoftAuthentication
-
-
Method Details
-
authorizeUriBuilder
Description copied from interface:AuthenticationReturns a new Authorize uri builder. It is used to build the authorize uri for user authentication.- Specified by:
authorizeUriBuilderin interfaceAuthentication- Overrides:
authorizeUriBuilderin classGenericAuthentication- Parameters:
redirectUri- the redirect uri- Returns:
- the authorize uri builder
-
revokeToken
Description copied from interface:AuthenticationLogs 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.- Specified by:
revokeTokenin interfaceAuthentication- Overrides:
revokeTokenin classGenericAuthentication- Parameters:
refreshToken- refresh token used for the request
-
requestFreshToken
- Overrides:
requestFreshTokenin classGenericAuthentication
-
isM2MToken
Description copied from interface:AuthenticationChecks if the token passed in is considered an M2M token.- Specified by:
isM2MTokenin interfaceAuthentication- Overrides:
isM2MTokenin classGenericAuthentication- Parameters:
token- the token- Returns:
- true if the token is a M2M token, else false
-
getClientId
Description copied from interface:AuthenticationGets the client ID associated to the token- Specified by:
getClientIdin interfaceAuthentication- Overrides:
getClientIdin classGenericAuthentication- Parameters:
token- the token- Returns:
- the clientID
-
getUserDetails
protected UserDetails getUserDetails(com.auth0.jwt.interfaces.DecodedJWT token, String organizationId) - Overrides:
getUserDetailsin classAbstractAuthentication
-
generateSingleSignOutUri
- Overrides:
generateSingleSignOutUriin classAbstractAuthentication
-