Skip to content

fix(portainer): point OAuth resource URL at Authentik userinfo - #129

Open
s3lcsum wants to merge 1 commit into
mainfrom
cursor/portainer-oauth-userinfo-4e0b
Open

fix(portainer): point OAuth resource URL at Authentik userinfo#129
s3lcsum wants to merge 1 commit into
mainfrom
cursor/portainer-oauth-userinfo-4e0b

Conversation

@s3lcsum

@s3lcsum s3lcsum commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Why

https://portainer.dominiksiejak.pl was up (HTTPS 200), but OAuth login never completed. Portainer’s Resource URL was set to the OIDC issuer (/application/o/portainer/), which 302s to discovery. After Authentik redirects back, Portainer fetches that URL for claims and login fails.

Authentik’s Portainer integration requires Resource URL = https://auth.dominiksiejak.pl/application/o/userinfo/.

Changes

  • Authentik output resource_uri now points at the shared userinfo endpoint
  • Portainer OAuth settings also get the Authentik end-session logout URI

Applied live

Targeted tofu apply on portainer_settings.default. Live settings now:

  • ResourceURI: https://auth.dominiksiejak.pl/application/o/userinfo/
  • LogoutURI: https://auth.dominiksiejak.pl/application/o/portainer/end-session/

Retry login at https://portainer.dominiksiejak.pl (Login with OAuth).

Portainer was using the OIDC issuer as Resource URL, so the post-login
userinfo fetch hit a 302 to discovery instead of claims and login never
completed. Also set the Authentik end-session logout URI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant