Skip to content

Commit b46cf9f

Browse files
authored
Merge pull request #157 from sywesk/master
Fix client secret not being checked
2 parents 201391a + b36d9c4 commit b46cf9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manage/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (m *Manager) GenerateAccessToken(ctx context.Context, gt oauth2.GrantType,
261261
if !cliPass.VerifyPassword(tgr.ClientSecret) {
262262
return nil, errors.ErrInvalidClient
263263
}
264-
} else if len(tgr.ClientSecret) > 0 && tgr.ClientSecret != cli.GetSecret() {
264+
} else if len(cli.GetSecret()) > 0 && tgr.ClientSecret != cli.GetSecret() {
265265
return nil, errors.ErrInvalidClient
266266
}
267267
if tgr.RedirectURI != "" {

0 commit comments

Comments
 (0)