public class MsalUserCredentialVerifier extends Object implements UserCredentialVerifier
| Constructor and Description |
|---|
MsalUserCredentialVerifier(com.microsoft.aad.msal4j.PublicClientApplication publicClientApplication,
AzureApiUriResolver endpointDataProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkUserCredential(String username,
com.atlassian.crowd.embedded.api.PasswordCredential userCredential)
Checks whether the user with the provided username can authenticate against Azure AD with provided credential.
|
public MsalUserCredentialVerifier(com.microsoft.aad.msal4j.PublicClientApplication publicClientApplication,
AzureApiUriResolver endpointDataProvider)
public void checkUserCredential(String username, com.atlassian.crowd.embedded.api.PasswordCredential userCredential) throws com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.OperationFailedException
UserCredentialVerifiercheckUserCredential in interface UserCredentialVerifierusername - username to authenticate the useruserCredential - credential to authenticate the usercom.atlassian.crowd.exception.InvalidAuthenticationException - if the authentication details provided are not valid, or if the user does not existcom.atlassian.crowd.exception.OperationFailedException - if the underlying implementation failed to execute the operationCopyright © 2023 Atlassian. All rights reserved.