Self Help Documentation
< All Topics

Single sign-on (SSO)

Description

Generates a single sign-on (SSO) token which can be used for secure login in SPanel without entering a password.

Warning
The authorizing API token which is going to be used must have the SSO option switched on.

Parameters

FieldTypeRequiredDescription
tokenstringYesAuthorizing API token – check API Basics for more information.
usernamestringYesValid SPanel user, subuser or admin username.
rolestringYesRole of the provided user. Possible values: “user” or “admin”.
actionstringYesThe SPanel API function which generates the SSO link. It’s always “base/sso”.
ipstringNoAdditional layer of security – provide a valid IPv4 address from which the login will be performed via the generated link.
redirectstringNoValid existent SPanel page in format “category/page”. Defaults to the index page, if nothing provided.

Info
Generated SSO tokens have a very short lifespan. They must be used immediately after creation.

Example

You can find more information about the Endpoint URL in our API Basics article.

Output

Table of Contents