Skip to content

Commit

Permalink
update expected args specs for token endpoint as per OIDC spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame committed Oct 18, 2024
1 parent 5da4e1c commit 36486b7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/OpenIDConnectServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,31 @@ private function expected_arguments_specification( $route ) {
);
case 'token':
return array(
'grant_type' => array(
'grant_type' => array(
'type' => 'string',
'required' => true,
),
'client_id' => array(
'client_id' => array(
'type' => 'string',
'required' => false,
),
'client_secret' => array(
'client_secret' => array(
'type' => 'string',
'required' => false,
),
'redirect_uri' => array(
'client_assertion' => array(
'type' => 'string',
'required' => false,
),
'client_assertion_type' => array(
'type' => 'string',
'required' => false,
),
'redirect_uri' => array(
'type' => 'string',
'required' => true,
),
'code' => array(
'code' => array(
'type' => 'string',
'required' => true,
),
Expand Down

0 comments on commit 36486b7

Please sign in to comment.