mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-16 02:03:05 +03:00
1.8 KiB
1.8 KiB
id
| id |
|---|
| portainer |
Portainer
This requires Portainers Business Edition
The following example variables are used, and should be replaced with your actual URLS.
- portainer.example.com (The url of your Portainer instance.)
- id.example.com (The url of your Pocket ID instance.)
Pocket ID Setup
- In Pocket-ID create a new OIDC Client, name it i.e.
Portainer. - Set a logo for this OIDC Client if you would like too.
- Set the callback URL to:
https://portainer.example.com/. - Copy the
Client ID,Client Secret,Authorization URL,Userinfo URL, andToken URLfor use in the next steps.
Portainer Setup
- While initally setting up OAuth in Portainer, its recommended to keep the
Hide internal authentication promptset toOffincase you need a fallback login - This guide does NOT cover how to setup group claims in Portainer.
- Open the Portainer web interface and navigate to:
Settings > Authentication - Select
Custom OAuth Provider - Paste the
Client IDfrom Pocket ID into theClient IDfield in Portainer. - Paste the
Client Secretfrom Pocket ID into theClient Secretfield in Portainer. - Paste the
Authorization URLfrom Pocket ID into theAuthorization URLfield in Portainer. - Paste the
Token URLfrom Pocket ID into theAccess token URLfield in Portainer. - Paste the
Userinfo URLfrom Pocket ID into theResource URLfield in Portainer. - Set the
Redirect URLtohttps://portainer.example.com - Set the
Logout URLtohttps://portainer.example.com - Set the
User identifierfield topreferred_username. (This will use the users username vs the email) - Set the
Scopesfield to:email openid profile - Set
Auth StyletoAuto detect - Save the settings and test the new OAuth Login.