fix(op): add scope to access token scope

This commit is contained in:
Iñaki Segura 2024-10-09 17:50:23 +02:00
parent 8afb8b8d5f
commit ee6e4acb2a
7 changed files with 14 additions and 9 deletions

View file

@ -89,6 +89,7 @@ func CreateJWTTokenResponse(ctx context.Context, tokenRequest TokenRequest, crea
AccessToken: accessToken,
TokenType: oidc.BearerToken,
ExpiresIn: uint64(validity.Seconds()),
Scope: tokenRequest.GetScopes(),
}, nil
}