To setup WHMCS SSO, you need to generate some OpenID API credentials and normal API credentials on your WHMCS installation.

Generating OpenID credentials on WHMCS

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0199a776-47de-4241-baf3-8f7a35fccc25/Untitled.png

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>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d74d8c82-8f02-4191-9fee-6db0fa6837d3/Untitled.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fbd0e181-5499-4201-b2be-c173d0dffe39/Untitled.png

Generating API credentials on WHMCS

Navigate to the API credentials page on WHMCS, under Setup > Staff Management > Manage API Credentials

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/665b3fab-1a1b-4a1e-a78b-aa4d12dad59e/Untitled.png

First, we need to create an API role to setup the permissions

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c873ae38-a63b-411b-9253-316ecdf933a6/Untitled.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2e42be6b-3b96-46d4-bfad-3e776e5861fb/Untitled.png