Skip to content

Commit eafd8af

Browse files
Add per client authorization if needed.
1 parent c9f79d9 commit eafd8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func NewServer(cfg *Config, manager oauth2.Manager) *Server {
3232
return "", errors.ErrAccessDenied
3333
}
3434

35-
srv.PasswordAuthorizationHandler = func(ctx context.Context, clientID, username, password string) (string, error) {
35+
srv.PasswordAuthorizationHandler = func(ctx context.Context, username, password, clientID string) (string, error) {
3636
return "", errors.ErrAccessDenied
3737
}
3838
return srv

0 commit comments

Comments
 (0)