Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KeycloakPolicyEnforcerAuthorizer should permit if authentication is n…
…ot done by OIDC
- Loading branch information
1 parent
206ca5f
commit 90ae1ac
Showing
3 changed files
with
35 additions
and
20 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
17 changes: 17 additions & 0 deletions
17
...tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.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,17 @@ | ||
package io.quarkus.it.keycloak; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
|
||
import io.quarkus.security.Authenticated; | ||
|
||
@Path("/api2/resource") | ||
@Authenticated | ||
public class ProtectedResource2 { | ||
|
||
@GET | ||
public String testResource() { | ||
// This method must not be invoked | ||
throw new RuntimeException(); | ||
} | ||
} |