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 URL
for use in the next steps.
Portainer Setup
- While initally setting up OAuth in Portainer, its recommended to keep the
Hide internal authentication prompt
set toOff
incase 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 ID
from Pocket ID into theClient ID
field in Portainer. - Paste the
Client Secret
from Pocket ID into theClient Secret
field in Portainer. - Paste the
Authorization URL
from Pocket ID into theAuthorization URL
field in Portainer. - Paste the
Token URL
from Pocket ID into theAccess token URL
field in Portainer. - Paste the
Userinfo URL
from Pocket ID into theResource URL
field in Portainer. - Set the
Redirect URL
tohttps://portainer.example.com
- Set the
Logout URL
tohttps://portainer.example.com
- Set the
User identifier
field topreferred_username
. (This will use the users username vs the email) - Set the
Scopes
field to:email openid profile
- Set
Auth Style
toAuto detect
- Save the settings and test the new OAuth Login.