Skip to main content

login route for projects without any authentication methods (no token (sdk), no idp (turnkey))

get/v1/login

Creates a JWT token for a user id. If user id is not provided in the request, a random `user_id` will be generated

get/v1/login

https://managedservices-prod.rteappbuilder.com/

Request

HEADER

X-Project-IDREQUIRED
TYPE: STRING

project to login to


X-Platform-IDREQUIRED
TYPE: STRING

type of project


origin_urlREQUIRED
TYPE: STRING

url to redirect to if this route fails (if the platform_id=turnkey_*)


redirect_urlREQUIRED
TYPE: STRING

url to redirect to if this route succeeds (if platform_id=turnkey_*)


user_id
TYPE: STRING

user id to login as

Responses

success for platform_id=sdk_*

token
TYPE: STRING

user
TYPE: OBJECT
user_id
TYPE: STRING

user_auid
TYPE: INTEGER

screen_auid
TYPE: INTEGER

roles
TYPE: ARRAY

SAMPLE RESPONSE
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoZW50aWNhdGlvbl90eXBlIjowLCJhcHBfaWQiOiJhYjFmZTQ5NGFiNjA0ZmRmYWZiZjYzYzY0Yzg2ZDE5NCIsInVzZXJfaWQiOiJqb2UyMzQ2MiIsInByb2plY3RfaWQiOiJkdW1teXByb2plY3QiLCJzcGFjZV9pZCI6Im15X3NlY29uZF9zcGFjZSIsImV4cCI6MTY3OTAzNzA3N30.2vXGdYCZb_j_S-c6KCbSwYE3fzVvg24uKeXT_pIjfOA",
"user": {
"user_id": "c-de34a8cc-73f5-410c-a138-4c665c9c6d4a",
"user_auid": 228863768,
"screen_auid": 211707882,
"roles": [
"role01",
"role02"
]
}
}
Loading...