Token login for apps

From TempusServa wiki
Revision as of 09:10, 5 December 2019 by old>Admin (Created page with " THIS PAGE IS UNDER DEVELOPMENT === Using the token service === The URL of the service is '''/token''' The following parameters are supported * create * login ** redirect...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

THIS PAGE IS UNDER DEVELOPMENT

Using the token service

The URL of the service is /token

The following parameters are supported

  • create
  • login
    • redirect
  • renew

For safety allways use HTTPS and only use POST method for transmitting the token

create

Returns a token that can be used for login.

  https://site.acme.com/TempusServa/token?create
  c8d10470f211c21794849ad0c3aab154

login

Creates a session for the user and redirects to the front page

  https://site.acme.com/TempusServa/token?login=c8d10470f211c21794849ad0c3aab154
  Directs to: https://site.acme.com/TempusServa/main

Additionally a custom page can be selected

  https://site.acme.com/TempusServa/token?login=c8d10470f211c21794849ad0c3aab154&redirect=main?command=com.acme.tspages.CustomPage
  Directs to: https://site.acme.com/TempusServa/main?command=com.acme.tspages.CustomPage

renew

Removes old token and creates a new one

  https://site.acme.com/TempusServa/token?renew=c8d10470f211c21794849ad0c3aab154
  098f6bcd4621d373cade4e832627b4f6