Update environment variables
This commit is contained in:
parent
e2d728265b
commit
372120e835
8 changed files with 56 additions and 9 deletions
12
auth-service/.env.test
Normal file
12
auth-service/.env.test
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
NODE_ENV=docker
|
||||
|
||||
GOOGLE_CLIENT_ID="485880105639-1in8tvb6ondnn198rasuj2d8ank06ntp.apps.googleusercontent.com"
|
||||
GOOGLE_CLIENT_SECRET="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"
|
||||
GOOGLE_CALLBACK_URL="http://localhost:8080/auth/google/callback"
|
||||
LOGIN_REDIRECT_URL="http://localhost:5173/"
|
||||
ACCEPTED_ORIGINS=http://localhost:3000,http://localhost:8081,http://localhost:3001,http://localhost:5173
|
||||
ASSIGNMENT_SERVICE_URL="http://js-assignment-service:8082"
|
||||
DB_USER_SERVICE_URL="http://js-user-db-service:3100/"
|
||||
AUTH_SESSION_KEY="f3f4d8e6b17a4b3abdc8e9a2c0457aaf91c0d5f6e3b7a9c8df624bd71ea35f42"
|
||||
AUTH_URL = "http://localhost:8080"
|
||||
PORT=8080
|
||||
|
|
@ -66,7 +66,7 @@ passport.serializeUser((user, done) => {
|
|||
console.log("Serializing user:", user);
|
||||
// done(null, user);
|
||||
done(null, {
|
||||
userId: user.qrcodenumber || user.id,
|
||||
userId: user.qrcodenumber || user.userId,
|
||||
displayName: user.studentname || user.displayName,
|
||||
role: user.role,
|
||||
// emails: user.emails || "none",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue