diff --git a/pom.xml b/pom.xml
index 525fd91..413b042 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,6 +124,11 @@
io.quarkus
quarkus-swagger-ui
+
+
+ io.quarkus
+ quarkus-cache
+
diff --git a/src/main/java/fr/titionfire/ExampleResource.java b/src/main/java/fr/titionfire/ExampleResource.java
index 617736e..cc432e7 100644
--- a/src/main/java/fr/titionfire/ExampleResource.java
+++ b/src/main/java/fr/titionfire/ExampleResource.java
@@ -2,6 +2,7 @@ package fr.titionfire;
import io.quarkus.oidc.IdToken;
import io.quarkus.oidc.RefreshToken;
+import io.quarkus.oidc.UserInfo;
import io.quarkus.security.identity.SecurityIdentity;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
@@ -30,6 +31,9 @@ public class ExampleResource {
@IdToken
JsonWebToken idToken;
+ @Inject
+ UserInfo userInfo;
+
/**
* Injection point for the Access Token issued by the OpenID Connect Provider
*/
@@ -59,7 +63,8 @@ public class ExampleResource {
.append("")
.append("");
-
+ System.out.println(idToken);
+ System.out.println(accessToken);
Object userName = this.idToken.getClaim("preferred_username");
if (userName != null) {
@@ -69,25 +74,17 @@ public class ExampleResource {
response.append("- username: ").append(this.idToken.toString()).append("
");
}
- Object scopes = this.accessToken.getClaim("scope");
+ /*Object scopes = this.accessToken.getClaim("scope");
if (scopes != null) {
response.append("- scopes: ").append(scopes.toString()).append("
");
}
- if (scopes != null) {
- response.append("- scopes: ").append(this.accessToken.toString()).append("
");
- }
+ response.append("- scopes: ").append(this.accessToken.toString()).append("
");
+ response.append("- scopes: ").append(this.accessToken.getClaim("user_groups").toString()).append("
");*/
- if (scopes != null) {
- response.append("- scopes: ").append(this.accessToken.getClaim("user_groups").toString()).append("
");
- }
-
- if (scopes != null) {
- response.append("- getRoles: ").append(this.securityIdentity.getRoles()).append("
");
- }
-
+ response.append("- getRoles: ").append(this.securityIdentity.getRoles()).append("
");
response.append("- refresh_token: ").append(refreshToken.getToken() != null).append("
");
return response.append("
").append("").append("