public class AuthenticationResource extends AbstractResource
request, uriInfo
Constructor and Description |
---|
AuthenticationResource(AuthenticationController authenticationController) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
authenticateUser(String username,
PasswordEntity password)
Authenticates a user.
|
javax.ws.rs.core.Response |
userAuthenticated(String username)
Notifies Crowd that a user has logged into an application, using a method different than the default
/authentication or /session resources.
|
getApplicationName, getBaseUri, setApplicationName, setRequest, setUriInfo
public AuthenticationResource(AuthenticationController authenticationController)
public javax.ws.rs.core.Response authenticateUser(String username, PasswordEntity password) throws ApplicationAccessDeniedException, ExpiredCredentialException, InactiveAccountException, InvalidAuthenticationException, OperationFailedException
username
- name of the userApplicationAccessDeniedException
ExpiredCredentialException
InactiveAccountException
InvalidAuthenticationException
OperationFailedException
@ExperimentalApi public javax.ws.rs.core.Response userAuthenticated(String username) throws InactiveAccountException, ExpiredCredentialException, OperationFailedException, InvalidAuthenticationException
This allows to trigger side effects in Crowd, such as updating the user from the remote directory, or applying automatic group assignments.
username
- name of the userInactiveAccountException
ExpiredCredentialException
OperationFailedException
InvalidAuthenticationException
Copyright © 2020 Atlassian. All rights reserved.
View cookie preferences