File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/auth/identity_auth_login_done Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11const { response } = require ( "../../utils" ) ;
22const jwt = require ( "jsonwebtoken" ) ;
33const SWA_EMU_AUTH_URI = process . env . SWA_EMU_AUTH_URI || `http://localhost:4242` ;
4+ const { currentUser } = require ( "../../userManager" ) ;
45
56const jwtKey = "123" ;
67const jwtExpirySeconds = 300 ;
78
89module . exports = async function ( context , req ) {
10+ const { cookie } = req . headers ;
911 const payload = {
10- ...{
11- identityprovider : "github" ,
12- useridfromprovider : "1699357" ,
13- userid : "59cd31faa8c34919ac22c19af50482b8" ,
14- userdetails : "manekinekko" ,
15- isnewuser : "False" ,
16- existingroles : "" ,
17- } ,
12+ ...currentUser ( cookie ) ,
1813 nonce : context . invocationId ,
1914 iss : "localhost" ,
2015 aud : "localhost" ,
You can’t perform that action at this time.
0 commit comments