Fix post-enrollment OIDC redirect/login flow for external users #39
Labels
No labels
auth
autorelease: pending
autorelease: tagged
bug
dependencies
devops
docker
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
javascript
maintenance
question
refactor
ui
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gitchegumi/GitchAlerts#39
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The current onboarding flow successfully creates a user in Authentik, but after enrollment the user is sent back to the GitchAlerts "Sign in with OIDC" page. When an external user clicks the button, the Authentik login portal is not served correctly.
This appears to work for me when I am on the same network as the server, but fails for friends accessing externally.
Current behavior
Expected behavior
After Authentik enrollment succeeds, the user should be able to complete OIDC login from outside the LAN using the public HTTPS routes.
Ideally, enrollment should either:
Areas to inspect
AUTH_OIDC_ISSUERmust use the public canonical Authentik issuer URL, not an internal hostname/IP.NEXTAUTH_URL/ app public URL must match the externally reachable GitchAlerts URL.Acceptance criteria
Notes
This is probably an integration/configuration edge between GitchAlerts, Authentik, NextAuth, and reverse proxy public URLs. The key symptom is that the account is created in Authentik, but the post-enrollment OIDC/login step does not work for external users.