Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/auth/login/{username}/{password}
Info

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 "Authorizationinf_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
Code Block
curl -c cookies.txt -X GET "http://localhost:8185/auth/login/sterling_archer@ikanow.com/8675301" > response.txt

 

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

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