Skip to content

Commit

Permalink
Merge pull request #117 from Automattic/token_endpoint_expected_args_…
Browse files Browse the repository at this point in the history
…specs_update

Update expected args specs for token endpoint as per OIDC spec
  • Loading branch information
ashfame authored Oct 21, 2024
2 parents 5da4e1c + 36486b7 commit a65653b
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 a65653b

Please sign in to comment.