Made the tokens contain the actual sub
Signed-off-by: Arzumify <jliwin98@danwin1210.de>
This commit is contained in:
parent
10a48cdd1c
commit
755a600418
|
@ -1125,7 +1125,7 @@ func Main(information library.ServiceInitializationInformation) {
|
|||
}
|
||||
|
||||
openIDTemplate := jwt.MapClaims{
|
||||
"sub": userId,
|
||||
"sub": uuid.Must(uuid.FromBytes(userId)).String(),
|
||||
"iss": hostName,
|
||||
"name": username,
|
||||
"aud": appId,
|
||||
|
@ -1154,6 +1154,7 @@ func Main(information library.ServiceInitializationInformation) {
|
|||
"nonce": nonce,
|
||||
"aud": appId,
|
||||
"isOpenID": false,
|
||||
"sub": uuid.Must(uuid.FromBytes(userId)).String(),
|
||||
}
|
||||
|
||||
accessToken := jwt.NewWithClaims(jwt.SigningMethodEdDSA, accessTokenTemplate)
|
||||
|
|
Loading…
Reference in New Issue