Authentication web service

This web service is devoted to generate login tokens that can be used to log in a TOWeRS system without entering credentials (more on how to use the token here).

In order to perform the request, a client must provide:

  • an API key which can be generated in a TOWeRS system and put it in the Authorization header.
  • either a set of credentials (actor, login) or a special code belonging to the user we need to log in the TOWeRS system

If the request is performed correctly, a token string will be returned.

Request

Method: POST

Url:

https://baseurl/EPYCS_API/sso_token_generator

Headers:

  • Authorization: Basic APIKEY
  • Content/Type: application/json

Body:

{
    "actor": "testactor",
    "login": "testlogin"
}

or

{
    "foreign_code": "code"
}
Response
eyuhweqwe.dncp923nq8ybn2840rcn20nc.2cn80bryc90y4bc0y34rc80y3br4cy34