@Path(value="authentication") @Produces(value={"application/xml","application/json"}) @Consumes(value={"application/xml","application/json"}) 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)
@POST public javax.ws.rs.core.Response authenticateUser(@QueryParam(value="username") String username, PasswordEntity password) throws ApplicationAccessDeniedException, ExpiredCredentialException, InactiveAccountException, InvalidAuthenticationException, OperationFailedException
username
- name of the userApplicationAccessDeniedException
ExpiredCredentialException
InactiveAccountException
InvalidAuthenticationException
OperationFailedException
@ExperimentalApi @POST @Path(value="notify") public javax.ws.rs.core.Response userAuthenticated(@QueryParam(value="username") 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 © 2021 Atlassian. All rights reserved.