We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a0a68 commit 13e333fCopy full SHA for 13e333f
builder-api/.gitignore
@@ -44,4 +44,10 @@ nb-configuration.xml
44
# TLS Certificates
45
.certs/
46
47
-config/
+config/
48
+
49
+# Service account crdentials
50
+src/main/resources/benefit-decision-toolkit*.json
51
52
+# Temp
53
+src/main/resources/properties-test.txt
builder-api/src/main/java/org/acme/auth/AuthUtils.java
@@ -1,9 +1,10 @@
1
package org.acme.auth;
2
3
import io.quarkus.security.identity.SecurityIdentity;
4
+import org.eclipse.microprofile.jwt.JsonWebToken;
5
6
public class AuthUtils {
7
public static String getUserId(SecurityIdentity identity){
- return identity.getPrincipal().getName();
8
+ return ((JsonWebToken)identity.getPrincipal()).getClaim("user_id");
9
}
10
0 commit comments