The login flow
- The customer clicks Auto Login in Paymenter.
- Paymenter calls
/sso on your panel with the secret and the panel user ID of the customer.
- The panel checks the secret and answers with a one-time token.
- Paymenter sends the customer to
/sso-login?token=... on your panel.
- The panel logs the customer in and opens the dashboard.
URLs
| URL |
What it does |
/sso |
Hands out a token to a caller with the right secret. Answers with JSON. |
/sso-login |
Logs in the user that belongs to the token |
Tokens
- A token is valid for 60 seconds.
- A token works once. It is removed when it is used.
- Only a hash of the token is stored on the panel.
Answers of /sso
| Status |
Message |
Cause |
| 200 |
|
A token was handed out |
| 403 |
Invalid SSO secret. |
The secret does not match |
| 403 |
Admin logins through SSO are turned off. |
The user is a root admin and Allow admin logins is off |
| 404 |
User not found. |
No panel user with that ID |
| 503 |
SSO is not configured on this panel. |
SSO secret is empty |
When a token on /sso-login is unknown, expired or already used, the visitor is sent to the panel home page without being logged in.