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.AzureAdClient
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
Fields inherited from class org.pac4j.oidc.client.AzureAdClient
objectMapper, typeRef
Fields inherited from class org.pac4j.core.client.IndirectClient
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
Fields inherited from class org.pac4j.core.client.BaseClient
logger, saveProfileInSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessTokenFromRefreshToken
(AzureAdProfile azureAdProfile) Refresh the access tokenMethods inherited from class org.pac4j.oidc.client.AzureAdClient
internalInit, newDefaultCallbackUrlResolver
Methods inherited from class org.pac4j.oidc.client.OidcClient
beforeInternalInit, getConfiguration, notifySessionRenewal, renewUserProfile, setConfiguration, toString
Methods inherited from class org.pac4j.core.client.IndirectClient
afterInternalInit, computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCodeVerifierSessionAttributeName, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, isCheckAuthenticationAttempt, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setCheckAuthenticationAttempt, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolver
Methods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getSaveProfileInSession, getUserProfile, isMultiProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setMultiProfile, setName, setProfileCreator, setProfileFactoryWhenNotAuthenticated, setSaveProfileInSession
Methods inherited from class org.pac4j.core.util.InitializableObject
getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Constructor Details
-
AzureAd2Client
public AzureAd2Client() -
AzureAd2Client
-
-
Method Details
-
getAccessTokenFromRefreshToken
Refresh the access token
https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow#refresh-the-access-token
- Overrides:
getAccessTokenFromRefreshToken
in classAzureAdClient
-