Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Revision History

 

DateVersionChanges
2014-09-171.01Error in service URL in table corrected and logout information added.
2014-06-121.0Created

 

All services requires the client to include a token, acquired from the authentication service. The token will be valid for a limited period of time, but valid for all requests during that time interval. So this is done in two steps:

...

URLhttps://login.boknett.no/v1/tickets
MethodPOST
Request
parameters
usernameRequiredUsername for whom to sign in as.
passwordRequiredPassword for whom to sign in as.
Response
headers

Boknett-TGT

TGT returned from login service
Returns201Created
400Bad Request
405Method Not Allowed

Sample usage

Remember that curl does not automatically urlencode -d input data, so if you password has any special characters you nede to manually urlencode it first. 

Code Block
languagebash
curl -i -d "username=USERNAME&password=PASSWORD" https://login.boknett.no/v1/tickets

HTTP/1.1 201 Created
Date: Tue, 10 Jun 2014 16:23:42 GMT
Server: Noelios-Restlet-Engine/1.1..1
Accept-Ranges: bytes
Boknett-TGT: TGT-152-leeshOABMDJE41s55z9WBLq7d7kk2ONUQozYHOF2FimxI5a9D9Z-login.boknett.no
Content-Length: 0
Via: 1.1 login.boknett.no

...