Skip to content

Single Sign On API

Create a token

POST /api/application/users/<id>/generate-sso-token

Tokens expire after 2 minutes or if it gets used.

json
{
    "data": {
        "user_id": 1,
        "token": "5e0d50852aafca4f4e6411c3665ba8005ca416bb012b982d2f6bb7c1daf98b4b"
    }
}

Use the token

Redirect the user's browser to example.com/authenticate?token=<token content>

Released under the Business Source License.