Package org.pac4j.oidc.client
Class AzureAd2Client
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.client.BaseClient
org.pac4j.core.client.IndirectClient
org.pac4j.oidc.client.OidcClient
org.pac4j.oidc.client.AzureAd2Client
- All Implemented Interfaces:
org.pac4j.core.client.Client
This class is the OpenID Connect client to authenticate users in Microsoft Azure AD v2.
.More information at: https://docs.microsoft.com/azure/active-directory/develop/active-directory-v2-protocols
- Since:
- 5.0.0
- Author:
- Charley Wu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperFields inherited from class org.pac4j.core.client.IndirectClient
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverFields inherited from class org.pac4j.core.client.BaseClient
logger, saveProfileInSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessTokenFromRefreshToken(AzureAdProfile azureAdProfile) Refresh the access tokenprotected voidinternalInit(boolean forceReinit) protected org.pac4j.core.http.callback.CallbackUrlResolverMethods inherited from class org.pac4j.oidc.client.OidcClient
beforeInternalInit, notifySessionRenewal, renewUserProfileMethods inherited from class org.pac4j.core.client.IndirectClient
afterInternalInit, computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCodeVerifierSessionAttributeName, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, isCheckAuthenticationAttempt, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setCheckAuthenticationAttempt, setLogoutActionBuilder, setLogoutActionBuilderIfUndefined, setRedirectionActionBuilder, setRedirectionActionBuilderIfUndefined, setUrlResolver, toStringMethods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getLogger, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getSaveProfileInSession, getSaveProfileInSession, getUserProfile, isMultiProfile, isMultiProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthenticatorIfUndefined, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCredentialsExtractorIfUndefined, setCustomProperties, setMultiProfile, setName, setProfileCreator, setProfileCreatorIfUndefined, setProfileFactoryWhenNotAuthenticated, setSaveProfileInSessionMethods inherited from class org.pac4j.core.util.InitializableObject
getInitialized, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
typeRef
-
-
Constructor Details
-
AzureAd2Client
public AzureAd2Client() -
AzureAd2Client
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) - Overrides:
internalInitin classOidcClient
-
newDefaultCallbackUrlResolver
protected org.pac4j.core.http.callback.CallbackUrlResolver newDefaultCallbackUrlResolver()- Overrides:
newDefaultCallbackUrlResolverin classorg.pac4j.core.client.IndirectClient
-
getAccessTokenFromRefreshToken
Refresh the access token
https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow#refresh-the-access-token
-