-
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
REST Assured-Test with Basic Auth fails since 0.24.0 #4638
Comments
@sberyozkin is this something you are aware of perhaps? |
@geoand Not yet, @stuartwdouglas, Stuart, is http security policy setting required to let the requests pass, something along the lines advised for #4544 ? |
For 0.25 this needs to be migrated to the new security layer. In particular:
|
It works now, but:
|
Looks like this was missed in the guides (TBH it does not actually matter at the moment, as BASIC auth is the default if none is explicitly defined). The old configuration did not really make sense, because you can really use a single auth method, however each Elytron realm had its own property to configure the method. If you configured say one with basic and one with form it was not clear which method would actually be used. The new implementation tries to seperate the method and the identity provider as much as possible. |
I'm fine with that...closing the issue. |
Describe the bug
I've a test, which uses REST Assured to test an REST-endpoint. This endpoint is secured with a
@RolesAllowed
-annotation. In production, we use MP-JWT, in test-environment the Basic-Auth-Mechanismquarkus.security.file
is used. Since 0.24.0, i get an HTTP-Status-Code 403 instead of 200. Last working version is 0.23.2.Expected behavior
Returned HTTP-Status-Code is 200.
Actual behavior
Returned HTTP-Status-Code is 403.
To Reproduce
Steps to reproduce the behavior:
@RolesAllowed
-annotation to REST-methodquarkus-elytron-security
-Dependency.auth().preemptive().basic("test", "pass")
Configuration
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
:Microsoft Windows [Version 10.0.17763.737]
java -version
:java version "1.8.0_181"
Additional context
(Add any other context about the problem here.)
test-roles.properties
test=customer
test-users.properties
test=pass
The text was updated successfully, but these errors were encountered: