Skip to content

Commit 250eb27

Browse files
author
Arran Ubels
authored
Not actually required as part of the RFC but if they do provide check secret
1 parent a156fbe commit 250eb27

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 tgr.ClientSecret != cli.GetSecret() {
264+
} else if len(tgr.ClientSecret) > 0 && tgr.ClientSecret != cli.GetSecret() {
265265
return nil, errors.ErrInvalidClient
266266
}
267267
if tgr.RedirectURI != "" {

0 commit comments

Comments
 (0)