-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43585 from sberyozkin/oidc_self_signed_idtoken_check
Check self-signed ID token when access token is verified
- Loading branch information
Showing
4 changed files
with
102 additions
and
17 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
33 changes: 33 additions & 0 deletions
33
...oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowOpaqueAccessTokenResource.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,33 @@ | ||
package io.quarkus.it.keycloak; | ||
|
||
import jakarta.inject.Inject; | ||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
|
||
import org.eclipse.microprofile.jwt.JsonWebToken; | ||
|
||
import io.quarkus.oidc.AccessTokenCredential; | ||
import io.quarkus.security.Authenticated; | ||
|
||
@Path("/code-flow-opaque-access-token") | ||
@Authenticated | ||
public class CodeFlowOpaqueAccessTokenResource { | ||
|
||
@Inject | ||
JsonWebToken jwtAccessToken; | ||
|
||
@Inject | ||
AccessTokenCredential accessTokenCredential; | ||
|
||
@GET | ||
public String getAccessTokenCredential() { | ||
return accessTokenCredential.getToken(); | ||
} | ||
|
||
@GET | ||
@Path("/jwt-access-token") | ||
public String getJwtAccessToken() { | ||
return jwtAccessToken.getRawToken(); | ||
} | ||
|
||
} |
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