Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

How it works

The two URLs the extension adds and how a login token is handed out.

On this page

The login flow#

  1. The customer clicks Auto Login in Paymenter.
  2. Paymenter calls /sso on your panel with the secret and the panel user ID of the customer.
  3. The panel checks the secret and answers with a one-time token.
  4. Paymenter sends the customer to /sso-login?token=... on your panel.
  5. 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.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.