Skip to content

Commit

Permalink
feat: make client_id and client_secret optional for the token endpoint
Browse files Browse the repository at this point in the history
bshaffer/oauth2-server-php supports sending the client id and secret as http basic auth.  With client id and secret set as required clients that send them via basic auth instead of in the request body will get an error when they try to exchange the token.
  • Loading branch information
lart2150 committed Oct 18, 2024
1 parent 98b3647 commit 1796de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenIDConnectServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ private function expected_arguments_specification( $route ) {
),
'client_id' => array(
'type' => 'string',
'required' => true,
'required' => false,
),
'client_secret' => array(
'type' => 'string',
'required' => true,
'required' => false,
),
'redirect_uri' => array(
'type' => 'string',
Expand Down

0 comments on commit 1796de1

Please sign in to comment.