Auth - Login

/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 "inf_token" 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: "inf_token":"5357f2ebb8e0ff6e90202799"