Skip to content

Commit 13e333f

Browse files
Setup connecting to firebase project locally
1 parent e3a0a68 commit 13e333f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

builder-api/.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,10 @@ nb-configuration.xml
4444
# TLS Certificates
4545
.certs/
4646

47-
config/
47+
config/
48+
49+
# Service account crdentials
50+
src/main/resources/benefit-decision-toolkit*.json
51+
52+
# Temp
53+
src/main/resources/properties-test.txt
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package org.acme.auth;
22

33
import io.quarkus.security.identity.SecurityIdentity;
4+
import org.eclipse.microprofile.jwt.JsonWebToken;
45

56
public class AuthUtils {
67
public static String getUserId(SecurityIdentity identity){
7-
return identity.getPrincipal().getName();
8+
return ((JsonWebToken)identity.getPrincipal()).getClaim("user_id");
89
}
910
}

0 commit comments

Comments
 (0)