Giter Site home page Giter Site logo

OpenIDConnectClientException: Cannot supply client credentials in both the Authentication header and the request-body about openid-connect-php HOT 2 CLOSED

rajnisheu avatar rajnisheu commented on July 18, 2024
OpenIDConnectClientException: Cannot supply client credentials in both the Authentication header and the request-body

from openid-connect-php.

Comments (2)

jumbojett avatar jumbojett commented on July 18, 2024

Hi @rajnisheu ! My thoughts are as follows.

  1. It appears that you're not using composer to install the library. (Thus the missing libs error.)
  2. id and secret are place holders for actual value that need to be obtained from your provider. Are you using actual values in this place?

Closing the issue for now. Feel free to re-open if you have additional questions!

from openid-connect-php.

rajnisheu avatar rajnisheu commented on July 18, 2024

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!

from openid-connect-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.