Class MsalUserCredentialVerifier
java.lang.Object
com.atlassian.crowd.directory.authentication.impl.MsalUserCredentialVerifier
- All Implemented Interfaces:
UserCredentialVerifier
-
Constructor Summary
ConstructorsConstructorDescriptionMsalUserCredentialVerifier(com.microsoft.aad.msal4j.PublicClientApplication publicClientApplication, AzureApiUriResolver endpointDataProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckUserCredential(String username, com.atlassian.crowd.embedded.api.PasswordCredential userCredential) Checks whether the user with the provided username can authenticate against Microsoft Entra ID with provided credential.
-
Constructor Details
-
MsalUserCredentialVerifier
public MsalUserCredentialVerifier(com.microsoft.aad.msal4j.PublicClientApplication publicClientApplication, AzureApiUriResolver endpointDataProvider)
-
-
Method Details
-
checkUserCredential
public void checkUserCredential(String username, com.atlassian.crowd.embedded.api.PasswordCredential userCredential) throws InvalidAuthenticationException, OperationFailedException Description copied from interface:UserCredentialVerifierChecks whether the user with the provided username can authenticate against Microsoft Entra ID with provided credential.- Specified by:
checkUserCredentialin interfaceUserCredentialVerifier- Parameters:
username- username to authenticate the useruserCredential- credential to authenticate the user- Throws:
InvalidAuthenticationException- if the authentication details provided are not valid, or if the user does not existOperationFailedException- if the underlying implementation failed to execute the operation
-