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
public class AzureAd2Client extends AzureAdClient
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
-
-
Constructor Summary
Constructors Constructor Description AzureAd2Client()
AzureAd2Client(AzureAd2OidcConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessTokenFromRefreshToken(AzureAdProfile azureAdProfile)
Refresh the access token-
Methods 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
-
-
-
-
Constructor Detail
-
AzureAd2Client
public AzureAd2Client()
-
AzureAd2Client
public AzureAd2Client(AzureAd2OidcConfiguration configuration)
-
-
Method Detail
-
getAccessTokenFromRefreshToken
public java.lang.String getAccessTokenFromRefreshToken(AzureAdProfile azureAdProfile)
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
-
-