You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using okat to test from my localhost xampp install on windows. First I got an error regarding phseclib which I had to include. This is my code with cert turned off for now:
Am redirected to okta and able to pass my creds. Also getting correctly redirected to local file after entering creds on okta. On callback to local am getting the following error: OpenIDConnectClientException: Cannot supply client credentials in both the Authentication header and the request-body. in C:\xampp\htdocs\openid\OpenIDConnectClient.php on line 228
Not able to figure out if this is an okta issue or openid-connect-php issue.
Any help appreciated.
The text was updated successfully, but these errors were encountered:
I can't find how to re-open this for topic no 2.
There's an issue when un-setting array fields in case of client_secret_basic which is fixed by also un-setting client_id as follows:
# Consider Basic authentication if provider config is set this way
if (in_array('client_secret_basic', $token_endpoint_auth_methods_supported)) {
$headers = ['Authorization: Basic ' . base64_encode($this->clientID . ':' . $this->clientSecret)];
unset($token_params['client_id']); // unset client_id as well
unset($token_params['client_secret']);
}
Could be Okta specific. Will run tests with other providers.
Re topic no 1, adding a line to the documentation mentioning dependency on PHPSecLib would great.
Thanks for the library!
Hi, I am using okat to test from my localhost xampp install on windows. First I got an error regarding phseclib which I had to include. This is my code with cert turned off for now:
Am redirected to okta and able to pass my creds. Also getting correctly redirected to local file after entering creds on okta. On callback to local am getting the following error:
OpenIDConnectClientException: Cannot supply client credentials in both the Authentication header and the request-body. in C:\xampp\htdocs\openid\OpenIDConnectClient.php on line 228
Not able to figure out if this is an okta issue or openid-connect-php issue.
Any help appreciated.
The text was updated successfully, but these errors were encountered: