Skip to content

Service: User Authentication Token

Eliza Margaretha edited this page May 20, 2022 · 6 revisions

** WARNING: This service has been deprecated and is not maintained anymore

Returns a token of type API used for authentication purposes. Further requests to restricted resources should include an authentication token in the Authorization header. API tokens must be indicated with authentication scheme "Api" in the Authorization header.

Available in: full version

Method: GET

Service URL: root/apiToken

Parameters

Header Parameters

Name Required Authentication scheme Value
Authorization yes Basic Username and password encoded in Base64

Example

Request

curl -H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' 
http://localhost:8089/api/auth/apiToken

Response

{
    "username": "username",
    "expires": "2017-12-17T18:46:30.134+01:00",
    "token": "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTM1MzI3OTAxMz
       QsInN1YiI6InVzZXJuYW1lIiwiaXNzIjoiaHR0cDpcL1wva29yYXA
       uaWRzLW1hbm5oZWltLmRlIn0.p4jHIGeVwTpYAPFiWAd0R8Zcazyg
       7e9_tUGxOyFGUlo",
    "token_type": "API"
}

References

Reschke, J., "The 'Basic' HTTP Authentication Scheme", RFC 7617, September 2015.

Clone this wiki locally