-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enabling both basic auth and form auth in quarkus does not work #7768
Labels
Milestone
Comments
stuartwdouglas
added a commit
to stuartwdouglas/quarkus
that referenced
this issue
Mar 20, 2020
- Use synthetic beans to configure form and basic auth - Allow multiple authentication mechanisms - Better default behaviour based on what is configured Fixes quarkusio#7768 Fixes quarkusio#5284
Merged
stuartwdouglas
added a commit
to stuartwdouglas/quarkus
that referenced
this issue
Mar 20, 2020
- Use synthetic beans to configure form and basic auth - Allow multiple authentication mechanisms - Better default behaviour based on what is configured Fixes quarkusio#7768 Fixes quarkusio#5284
stuartwdouglas
added a commit
to stuartwdouglas/quarkus
that referenced
this issue
Mar 26, 2020
- Use synthetic beans to configure form and basic auth - Allow multiple authentication mechanisms - Better default behaviour based on what is configured Fixes quarkusio#7768 Fixes quarkusio#5284
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Mar 26, 2020
- Use synthetic beans to configure form and basic auth - Allow multiple authentication mechanisms - Better default behaviour based on what is configured Fixes quarkusio#7768 Fixes quarkusio#5284
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Mar 26, 2020
- Use synthetic beans to configure form and basic auth - Allow multiple authentication mechanisms - Better default behaviour based on what is configured Fixes quarkusio#7768 Fixes quarkusio#5284
viniciusfcf
pushed a commit
to viniciusfcf/quarkus-fork
that referenced
this issue
Sep 7, 2020
- Use synthetic beans to configure form and basic auth - Allow multiple authentication mechanisms - Better default behaviour based on what is configured Fixes quarkusio#7768 Fixes quarkusio#5284
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I tried enabling both basic and form authentication in quarkus 1.2.1.Final. According to the documentation when enabling both form and basic auth, basic auth should work in silent mode. As far as i understand this means that basic auth is used when an authorization header is sent.
Expected behavior
When enabling both form and basic auth and sending a GET request with valid Authorization header to a rest endpoint, basic auth should be used, the user should be authenticated successfully and the rest resource should be called.
Actual behavior
The request is forwarded to the form login page (default=login.html). It does not matter whether Authorization header is set and if credentials are valid. Form authentication will always be used instead of basic auth. When I disable form authentication and only enable basic auth, then basic auth works as expected.
To Reproduce
Steps to reproduce the behavior:
Add test-users.properties with content:
admin=admin
and test-roles.properties with content:
admin=adminrole
Environment:
uname -a
orver
: Linux N302 5.3.0-40-generic add OneToManyPersister to reflected classes for hibernate #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linuxjava -version
: openjdk version "1.8.0_242"OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~19.10-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
The text was updated successfully, but these errors were encountered: