Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

/auth/login/{username}/{password}

Authenticates a session for the current user/environment.  This will return a cookie that is active for 30m from last action as well as a token in the "Authorization" header

Possible Methods

GET

Arguments

username (required)
the email address of the user that wants to login

password (required)
password required to login, encrypted with SHA-256 (base 64) and URL-encoded

Json Object

n/a

 

Example
curl -c cookies.txt -X GET "http://localhost:8185/auth/login/sterling_archer@ikanow.com/8675301" > response.txt

 

Example Response
curl -c cookies.txt -X GET "http://localhost:8185/auth/login/sterling_archer@ikanow.com/8675301" > response.txt
{
    "response": {
        "action": "Login",
        "success": true,
        "time": 0
    },
    "data": {
        "cookie": "5357f2ebb8e0ff6e90202799"
    }
}

Note: Also will return a header: "Authorization":"5357f2ebb8e0ff6e90202799"

  • No labels