Was this page helpful?

POST:users/authenticate

    Overview

    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.

    Uri Parameters

    None

    Query Parameters
    NameTypeDescription
    authproviderint?Identifier for the external service to use for authentication.
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Conflict409Username conflicts with an existing username
    Forbidden403Login access is required
    Ok200The request completed successfully
    Unauthorized401Authentication failed

    Message Format

    Output:
    Content-type=text/plain

    Implementation Notes

    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.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by