Class MicrosoftOAuth2TokenProvider
java.lang.Object
io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
io.jmix.email.authentication.impl.MicrosoftOAuth2TokenProvider
- All Implemented Interfaces:
OAuth2TokenProvider
-
Field Summary
Fields inherited from class io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
emailerProperties, refreshTokenManager -
Constructor Summary
ConstructorsConstructorDescriptionMicrosoftOAuth2TokenProvider(EmailerProperties emailerProperties, EmailRefreshTokenManager refreshTokenManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected com.microsoft.aad.msal4j.ConfidentialClientApplicationbuildClientApplication(com.microsoft.aad.msal4j.IClientCredential credential) protected com.microsoft.aad.msal4j.IClientCredentialGets access token by using refresh token.protected Stringprotected StringMethods inherited from class io.jmix.email.authentication.impl.AbstractOAuth2TokenProvider
getClientId, getRefreshToken, getSecret
-
Constructor Details
-
MicrosoftOAuth2TokenProvider
public MicrosoftOAuth2TokenProvider(EmailerProperties emailerProperties, EmailRefreshTokenManager refreshTokenManager)
-
-
Method Details
-
getAccessToken
Description copied from interface:OAuth2TokenProviderGets access token by using refresh token.- Returns:
- access token value
-
createCredential
protected com.microsoft.aad.msal4j.IClientCredential createCredential() -
buildClientApplication
protected com.microsoft.aad.msal4j.ConfidentialClientApplication buildClientApplication(com.microsoft.aad.msal4j.IClientCredential credential) -
getScopes
-
buildAuthorityUrl
-
getBaseAuthorityUrl
-
getTenant
-