From 36486b7fd1b18ef5271ede9155281e4f8f42b31c Mon Sep 17 00:00:00 2001 From: ashfame Date: Fri, 18 Oct 2024 22:48:38 +0400 Subject: [PATCH] update expected args specs for token endpoint as per OIDC spec --- src/OpenIDConnectServer.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/OpenIDConnectServer.php b/src/OpenIDConnectServer.php index 7c45285..8a6fde3 100644 --- a/src/OpenIDConnectServer.php +++ b/src/OpenIDConnectServer.php @@ -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, ),