This commit is contained in:
Livio Amstutz 2020-11-26 16:12:27 +01:00
parent 24120554e5
commit 36800145d6
5 changed files with 18 additions and 18 deletions

View file

@ -105,7 +105,7 @@ func CreateIDToken(ctx context.Context, issuer string, authReq AuthRequest, vali
return "", err
}
claims.SetAccessTokenHash(atHash)
if !client.UserInfoInIDToken() {
if !client.IDTokenUserinfoClaimsAssertion() {
scopes = removeUserinfoScopes(scopes)
}
}