Class AuthenticationResource
java.lang.Object
com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
com.atlassian.crowd.plugin.rest.service.resource.usermanagement.AuthenticationResource
@Path("authentication")
@Produces({"application/xml","application/json"})
@Consumes({"application/xml","application/json"})
public class AuthenticationResource
extends AbstractResource
User Authentication Resource.
-
Field Summary
Fields inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
request, uriInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.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.Methods inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
getApplicationName, getBaseUri, setApplicationName, setRequest, setUriInfo
-
Constructor Details
-
AuthenticationResource
-
-
Method Details
-
authenticateUser
@POST public javax.ws.rs.core.Response authenticateUser(@QueryParam("username") String username, PasswordEntity password) throws ApplicationAccessDeniedException, ExpiredCredentialException, InactiveAccountException, InvalidAuthenticationException, OperationFailedException Authenticates a user. Does not generate an SSO token. For SSO please take a look at the SSO token resource.- Parameters:
username
- name of the user- Throws:
ApplicationAccessDeniedException
ExpiredCredentialException
InactiveAccountException
InvalidAuthenticationException
OperationFailedException
-
userAuthenticated
@ExperimentalApi @POST @Path("notify") public javax.ws.rs.core.Response userAuthenticated(@QueryParam("username") String username) throws InactiveAccountException, ExpiredCredentialException, OperationFailedException, InvalidAuthenticationException Notifies Crowd that a user has logged into an application, using a method different than the default /authentication or /session resources. Does not initiate a SSO session.This allows to trigger side effects in Crowd, such as updating the user from the remote directory, or applying automatic group assignments.
- Parameters:
username
- name of the user- Throws:
InactiveAccountException
ExpiredCredentialException
OperationFailedException
InvalidAuthenticationException
- Since:
- v3.3.0
-