Class AzureActiveDirectoryAuthenticationHandler
java.lang.Object
org.apereo.cas.authentication.AbstractAuthenticationHandler
org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
org.apereo.cas.azure.ad.authentication.AzureActiveDirectoryAuthenticationHandler
- All Implemented Interfaces:
org.apereo.cas.authentication.AuthenticationHandler,org.apereo.cas.authentication.PrePostAuthenticationHandler,org.springframework.core.Ordered
public class AzureActiveDirectoryAuthenticationHandler
extends org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
- Since:
- 6.2.0
-
Field Summary
Fields inherited from class org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
passwordPolicyHandlingStrategyFields inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
principalFactoryFields inherited from interface org.apereo.cas.authentication.AuthenticationHandler
SUCCESSFUL_AUTHENTICATION_HANDLERSFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apereo.cas.authentication.AuthenticationHandlerExecutionResultauthenticateUsernamePasswordInternal(org.apereo.cas.authentication.credential.UsernamePasswordCredential credential, String originalPassword) protected com.microsoft.aad.adal4j.AuthenticationResultgetAccessTokenFromUserCredentials(String username, String password) Gets access token from user credentials.Methods inherited from class org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler
doAuthentication, getPasswordEncoder, getPasswordPolicyConfiguration, getPasswordPolicyHandlingStrategy, getPrincipalNameTransformer, matches, setPasswordEncoder, setPasswordPolicyConfiguration, setPasswordPolicyHandlingStrategy, setPrincipalNameTransformer, supports, supports, transformPassword, transformUsernameMethods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
authenticate, createHandlerResult, createHandlerResultMethods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
canEqual, equals, getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, getState, hashCode, setCredentialSelectionPredicate, setStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.AuthenticationHandler
getName, getOrder, getStateMethods inherited from interface org.apereo.cas.authentication.PrePostAuthenticationHandler
postAuthenticate, preAuthenticate
-
Constructor Details
-
AzureActiveDirectoryAuthenticationHandler
-
-
Method Details
-
getAccessTokenFromUserCredentials
protected com.microsoft.aad.adal4j.AuthenticationResult getAccessTokenFromUserCredentials(String username, String password) throws Exception Gets access token from user credentials.- Parameters:
username- the usernamepassword- the password- Returns:
- the access token from user credentials
- Throws:
Exception- the exception
-
authenticateUsernamePasswordInternal
protected org.apereo.cas.authentication.AuthenticationHandlerExecutionResult authenticateUsernamePasswordInternal(org.apereo.cas.authentication.credential.UsernamePasswordCredential credential, String originalPassword) throws GeneralSecurityException - Specified by:
authenticateUsernamePasswordInternalin classorg.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler- Throws:
GeneralSecurityException
-