Skip to content

Commit

Permalink
Add per client authorization if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-semence committed May 2, 2022
1 parent c9f79d9 commit eafd8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewServer(cfg *Config, manager oauth2.Manager) *Server {
return "", errors.ErrAccessDenied
}

srv.PasswordAuthorizationHandler = func(ctx context.Context, clientID, username, password string) (string, error) {
srv.PasswordAuthorizationHandler = func(ctx context.Context, username, password, clientID string) (string, error) {
return "", errors.ErrAccessDenied
}
return srv
Expand Down

0 comments on commit eafd8af

Please sign in to comment.