fix: return error when delegating user in jwt profile request (#94)

This commit is contained in:
Livio Amstutz 2021-04-23 11:53:03 +02:00 committed by GitHub
parent d6cc89819b
commit a2601f1584
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ func VerifyJWTAssertion(ctx context.Context, assertion string, v JWTProfileVerif
if request.Issuer != request.Subject { if request.Issuer != request.Subject {
//TODO: implement delegation (openid core / oauth rfc) //TODO: implement delegation (openid core / oauth rfc)
return nil, errors.New("delegation not yet implemented, issuer and sub must be identical")
} }
keySet := &jwtProfileKeySet{v.Storage(), request.Issuer} keySet := &jwtProfileKeySet{v.Storage(), request.Issuer}