Skip to content

Commit

Permalink
Fix client secret not being checked
Browse files Browse the repository at this point in the history
  • Loading branch information
sywesk committed Jul 19, 2020
1 parent 201391a commit b36d9c4
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 b36d9c4

Please sign in to comment.