Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(admin): support forward-auth remote user headers #25

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

imnotjames
Copy link
Contributor

@imnotjames imnotjames commented Apr 4, 2024

fixes #24

This adds a new setting for a remote user header. When this is set, the header with that name is read as the authenticated user's email address.

This is meant to be used with traefik's forwardAuth or oauth2-proxy. When this is enabled, end users must not have access to the admin interface directly for security reasons, but how to prevent that kind of access is outside the scope of this PR.

This works in a similar way to the GitHub authentication mechanism for creating a new user if they are the first user and no other user exists.

@imnotjames imnotjames force-pushed the feat/proxy-auth branch 4 times, most recently from d446dea to b8eee76 Compare April 6, 2024 20:38
@imnotjames imnotjames marked this pull request as ready for review April 10, 2024 02:17
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.

Support reverse proxy authorization
1 participant