Pangolin
Pocket ID Setup
- In Pocket ID create a new OIDC Client, name it, for example,
pangolin
- Copy the
Client ID
,Client Secret
,Authorization URL
andToken URL
for the following steps
- Copy the
We'll be coming back to set the Callback URL once we've setup Pangolin.
Pangolin Setup
- Log into Pangolin using your super user account
- Under Server Admin, select Identity Providers, then "+ Add Identity Provider"
- Enter the following:
- Name: PocketID (or anything you want)
- Select Provider Type: OAuth2/OIDC
- Client ID: Your Client ID from Pocket ID
- Client Secret: Your Client Secret from Pocket ID.
- Authorization URL: Your Authorization URL from Pocket ID.
- Token URL: Your Token URL from Pocket ID.
- Identifier Path: One of
email
,preferred_username
orsub
(Advanced) - Email Path:
email
- Name Path:
name
- Scopes:
openid profile email
- Save your new Identity Provider
- Under the general tab you can find the
Redirect URL
, copy this for the next step
Pocket ID (cont)
- Go back to your Pocket ID instance and edit your OIDC Client.
- Add the
Redirect URL
from Pangolin as a Callback URL in the OIDC Client and save.
Pangolin (cont)
Automatic user provisioning is only supported on a Pangolin Professional license.
If you're on a non-Professional License, you'll need to manually create new users in Pangolin.
You can create one like so:
- Back in your Pangolin instance, go to your organization, select Users, then "+ Create User".
- Select "External User", select your Pocket ID Identity provider, and fill in the relevant details.
Depending on what you configured in Identifier Path
, you'll need to add that in the username
field.
email
will be your Pocket ID email.preferred_username
will be your Pocket ID username.
Once you have your user created, you can save, log out from Pangolin, and test your new OIDC connection.
Errors
User not provisioned in the system
Make sure you have a user created in Pangolin and that the "Username" matches the Identifier Path
used.
Invalid callback URL, it might be necessary for an admin to fix this
Your Callback URL is not correctly defined in Pocket ID. Make sure this matches the Redirect URL
in your Pangolin OIDC config.
Example: https://pangolin.example.com/auth/idp/1/oidc/callback