Skip to content

Commit 925e3b7

Browse files
committed
make path consistent by add DID to /oauth2/{did}/request.jwt/{id}
1 parent 68ce068 commit 925e3b7

File tree

3 files changed

+241
-215
lines changed

3 files changed

+241
-215
lines changed

auth/api/iam/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ func (r Wrapper) GetRequestJWT(ctx context.Context, request GetRequestJWTRequest
359359
if err != nil {
360360
return nil, err
361361
}
362+
if ro.client().String() != request.Did {
363+
return nil, errors.New("invalid request")
364+
}
362365
if !ro.signed() {
363366
return nil, oauth.OAuth2Error{
364367
Code: oauth.InvalidRequest,

0 commit comments

Comments
 (0)