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

Use a GatewayFilter to redirect to the login page when given a login query parameter #415

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gateway/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spring:
# AddSecHeaders appends sec-* headers to proxied requests based on the currently authenticated user
- AddSecHeaders
- PreserveHostHeader
- LoginParamRedirect #redirects all request with a ?login query param to /login
filter:
secure-headers:
referrer-policy: strict-origin
referrer-policy: strict-origin
8 changes: 8 additions & 0 deletions gateway/security.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
georchestra:
gateway:
security:
header-authentication:
# If enabled, pre-authentication is enabled and can be performed by passing
# true to the sec-georchestra-preauthenticated request header, and user details
# through the following request headers: preauth-username, preauth-firstname,
# preauth-lastname, preauth-org, preauth-email, preauth-roles.
# In such case, it is crucial for the reverse proxy in front of the gateway to
# sanitize the mentioned request headers to prevent external impersonation.
enabled: false
createNonExistingUsersInLDAP: true
enableRabbitmqEvents: true
oauth2:
Expand Down
Loading