-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add header-based authentication support #5270
Closed
banddude
wants to merge
15
commits into
pterodactyl:develop
from
banddude:feature/header-authentication
Closed
Add header-based authentication support #5270
banddude
wants to merge
15
commits into
pterodactyl:develop
from
banddude:feature/header-authentication
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
Signed-off-by: Matthew Penner <[email protected]>
This commit adds support for header-based authentication, allowing users to authenticate via HTTP headers. This is particularly useful for proxy authentication via SSO providers like Authelia or Authentik. Features:\n- New HeaderAuthentication middleware\n- Configurable header names for username and email\n- Optional automatic user creation\n- Comprehensive test suite\n- SQLite and MySQL compatibility The feature can be enabled via environment variables:\nAUTH_HEADER_ENABLED=true\nAUTH_HEADER_AUTO_CREATE=true\nAUTH_HEADER_USERNAME=X-Auth-Username\nAUTH_HEADER_EMAIL=X-Auth-Email
Closing, resubmitted as #5271 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description\nThis PR adds support for header-based authentication, allowing integration with proxy authentication providers like Authelia or Authentik. This provides a lightweight alternative to implementing full LDAP, SAML, or OIDC support.\n\n### Features\n- Header-based authentication via configurable HTTP headers\n- Optional automatic user creation for new users\n- Configurable header names for username and email\n- Easy integration with existing proxy authentication systems\n\n### Configuration\nNew environment variables added:\n- AUTH_HEADER_ENABLED: Enable/disable header authentication\n- AUTH_HEADER_USERNAME: Header containing username (default: X-Auth-Username)\n- AUTH_HEADER_EMAIL: Header containing email (default: X-Auth-Email)\n- AUTH_HEADER_AUTO_CREATE: Enable/disable automatic user creation\n\nCloses #4026