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

Enable multiple authentication endpoints simultaneously #89

Open
pierocampa opened this issue Sep 13, 2023 · 0 comments
Open

Enable multiple authentication endpoints simultaneously #89

pierocampa opened this issue Sep 13, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@pierocampa
Copy link
Member

pierocampa commented Sep 13, 2023

Currently the simultaneous activation of both Basic and OIDC/OAuth2 (Keycloak) authentication mechanism is not working properly, essentially because of the way the Spring security filter chains are registered: as explained here, for a given incoming request, only the first filter chain that applies will be called:

[...] FilterChainProxy decides which SecurityFilterChain should be used. Only the first SecurityFilterChain that matches will be invoked.

Hence depending on the order the authentication mechanisms are registered, one overwrites the other one.

Interested package: org.openeo.spring.security

@pierocampa pierocampa added bug Something isn't working enhancement New feature or request labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant