AUTH: Generate Federation Token

This endpoint allows a logged in user to use their bearer token to generate a web-link that automatically logs them into the web-interface of the platform. This can be useful when needing to switch to web-only modals (KYC Systems, Payment Interfaces, etc.) while still retaining the user session context.

The returned Federation Token can be used to call the platform's login page with an optional redirect parameter:

https://portal.platform.com/login?token=TGUzZ1JiY0Z0RzBMcU5XRE9RbjVaTjdu&redirect=/account/some/widget

Note: Federation Tokens automatically expire 1 minute after creation.

AUTH: Generate Web-Federation Token

get

This endpoint allows a logged in user to use their bearer token to generate a web-link that automatically logs them into the web-interface of the platform. This can be useful when needing to switch to web-only modals (KYC Systems, Payment Interfaces, etc.) while still retaining the user session context.

The returned Federation Token can be used to call the platform's login page with an optional redirect parameter:

https://portal.platform.com/login?token=TGUzZ1JiY0Z0RzBMcU5XRE9RbjVaTjdu&redirect=/account/some/widget

Note: Federation Tokens automatically expire 1 minute after creation.

Authorizations
Responses
200

OK

application/json
Responseobject
get
/auth/federate
GET /api/v1/auth/federate HTTP/1.1
Host: api.hybrid-chain.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "federation_token": "TEdUNzR0TUtVdjZuNUxaS2lCeGtpZHlx",
  "success": true
}

Last updated

Was this helpful?