forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JAX-RS default security checks for inherited / transformed endpoints
(cherry picked from commit 6f3d752d157cc8eb22cc86c521cd6f029f67f42f)
- Loading branch information
1 parent
a180a8f
commit 467cc9c
Showing
24 changed files
with
339 additions
and
89 deletions.
There are no files selected for viewing
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
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
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
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
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
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
14 changes: 14 additions & 0 deletions
14
...y/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredParentResource.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.resteasy.test.security; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
|
||
public class UnsecuredParentResource { | ||
|
||
@Path("/defaultSecurityParent") | ||
@GET | ||
public String defaultSecurityParent() { | ||
return "defaultSecurityParent"; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,18 @@ | |
* @author Michal Szynkiewicz, [email protected] | ||
*/ | ||
@Path("/unsecured") | ||
public class UnsecuredResource { | ||
public class UnsecuredResource extends UnsecuredParentResource implements UnsecuredResourceInterface { | ||
@Path("/defaultSecurity") | ||
@GET | ||
public String defaultSecurity() { | ||
return "defaultSecurity"; | ||
} | ||
|
||
@Override | ||
public String defaultSecurityInterface() { | ||
return UnsecuredResourceInterface.super.defaultSecurityInterface(); | ||
} | ||
|
||
@Path("/permitAllPathParam/{index}") | ||
@GET | ||
@PermitAll | ||
|
14 changes: 14 additions & 0 deletions
14
...eployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredResourceInterface.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.resteasy.test.security; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
|
||
public interface UnsecuredResourceInterface { | ||
|
||
@Path("/defaultSecurityInterface") | ||
@GET | ||
default String defaultSecurityInterface() { | ||
return "defaultSecurityInterface"; | ||
} | ||
|
||
} |
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
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
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
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
Oops, something went wrong.