From 90c8684355391822cc373de930595a72f4b400e4 Mon Sep 17 00:00:00 2001 From: Lukas Niederberger Date: Mon, 6 Sep 2021 11:53:37 -0700 Subject: [PATCH] Change token request to use form data Using JSON for oauth token requests is not RFC compliant and no longer supported by CCP. Switched `getAccessRequest` to use `form_params` instead of `json` --- app/Client/Ccp/Sso/Sso.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Client/Ccp/Sso/Sso.php b/app/Client/Ccp/Sso/Sso.php index 2a43626..9f1039c 100644 --- a/app/Client/Ccp/Sso/Sso.php +++ b/app/Client/Ccp/Sso/Sso.php @@ -57,7 +57,7 @@ function($body) : array { */ protected function getAccessRequest(array $credentials, array $requestParams = []) : RequestConfig { $requestOptions = [ - 'json' => $requestParams, + 'form_params' => $requestParams, 'auth' => $credentials ]; @@ -102,4 +102,4 @@ public function getVerifyAuthorizationCodeEndpointURI() : string { protected function getConfig() : ConfigInterface { return ($this->config instanceof ConfigInterface) ? $this->config : $this->config = new Config(); } -} \ No newline at end of file +}