To setup WHMCS SSO, you need to generate some OpenID API credentials and normal API credentials on your WHMCS installation.
Navigate to the OpenID Connect page on WHMCS, under Setup > OpenID Connect
. You'll find a button to generate new API credentials for OpenID on that page - click that green button.
Next, you will need to add these two authorised redirect URL's for your game panel domain name. Obviously, changing the actual domain name to the domain your game panel is accessible on:
https://your.panel.gg/account/sso <https://your.panel.gg/auth/login/sso
>
Once you click save, it should send you to a page with the information we need to put into your game panel. We'll need these later.
Navigate to the API credentials page on WHMCS, under Setup > Staff Management > Manage API Credentials
First, we need to create an API role to setup the permissions
You only need to assign the two following permissions to the API role:
Authentication > ValidateLogin
Client > GetClientDetails
These permissions are so users who login with SSO can use their WHMCS password on SFTP.