Skip to content

Commit

Permalink
Merge pull request #157 from sywesk/master
Browse files Browse the repository at this point in the history
Fix client secret not being checked
  • Loading branch information
LyricTian authored Jul 20, 2020
2 parents 201391a + b36d9c4 commit b46cf9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (m *Manager) GenerateAccessToken(ctx context.Context, gt oauth2.GrantType,
if !cliPass.VerifyPassword(tgr.ClientSecret) {
return nil, errors.ErrInvalidClient
}
} else if len(tgr.ClientSecret) > 0 && tgr.ClientSecret != cli.GetSecret() {
} else if len(cli.GetSecret()) > 0 && tgr.ClientSecret != cli.GetSecret() {
return nil, errors.ErrInvalidClient
}
if tgr.RedirectURI != "" {
Expand Down

0 comments on commit b46cf9f

Please sign in to comment.