public. Authenticate a user given http header Credentials or an auth token. When using external authentication, this will automatically create an account and synchronize groups. Response status 200 implies valid credentials and contains a new auth token.
None
| Name | Type | Description |
| authprovider | int? | Identifier for the external service to use for authentication. |
| Name | Value | Description |
| BadRequest | 400 | Invalid input parameter or request body |
| Conflict | 409 | Username conflicts with an existing username |
| Forbidden | 403 | Login access is required |
| Ok | 200 | The request completed successfully |
| Unauthorized | 401 | Authentication failed |
Output:
Content-type=text/plain
If the login credentials are valid, this feature returns an authentication token in the response text and an 'authtoken' cookie. This cookie can be used with subsequent requests to execute using the login credentials.
This feature is identical to GET:users/authenticate, except that it automatically creates new users when using external authentication.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by