Auto Login uses a shared secret between Paymenter and your panel. The setup depends on your panel version.
Pterodactyl v2#
-
Install the Advanced Pterodactyl SSO extension on your panel. It is in the
Pterodactyl v2 SSOfolder of the download. Follow Advanced Pterodactyl SSO. -
Make a secret of at least 32 characters, for example with:
openssl rand -hex 32 -
In the panel, open the settings of Advanced Pterodactyl SSO and paste it under SSO secret.
-
In Paymenter, go to Extensions → Servers, edit your server and paste the same value under SSO Secret Key.
-
Leave SSO Endpoint Path on
/sso.
Pterodactyl v1#
Install an SSO plugin on your panel that works like this:
- Paymenter sends a GET request to the panel URL plus SSO Endpoint Path with the parameters
sso_secretanduser_id. - The panel answers with JSON that contains a
tokenor aredirectURL. - Paymenter sends the customer to that
redirect, or to/sso-login?token=...on your panel.
Fill in the secret of that plugin under SSO Secret Key and set SSO Endpoint Path to the path the plugin uses. The default is /sso.
Turn it off#
Clear SSO Secret Key. The Auto Login button disappears from the service page.
When it fails#
The customer sees an error page with a link to open the panel normally. Turn on Enable Verbose Logging to write the details of the request and the answer of the panel to the Paymenter log.