Coder Social home page Coder Social logo

PKCE Support about node-openid-client HOT 3 CLOSED

panva avatar panva commented on August 23, 2024
PKCE Support

from node-openid-client.

Comments (3)

panva avatar panva commented on August 23, 2024

Hi @davidgtonge,

I am much interested in the use-case where this applies to a confidential client that has a kept-secret. I can't think of a situation where PKCE would add any real value to such a client.

What about passing code_verifier as a property of checks and if it's present it would be added to the body that goes to the grant(...) call.

from node-openid-client.

davidgtonge avatar davidgtonge commented on August 23, 2024

Hi @panva apologies for the delay.
So in an earlier draft of the FAPI spec we had PKCE as required for confidential and public clients. We've now made it only required for public clients, however there is still a "defence in depth" argument for using it for confidential clients. Essentially it provides "Holder of Key" protection for the auth code. So the client is not just proving its identity with its client creds, but also proving that it was the client who started that particular authorization flow.

I also think it's nice to help people understand the specs :-)

I'll do a pull request to add it as an optional property of checks.

Thanks

from node-openid-client.

ingoncalves avatar ingoncalves commented on August 23, 2024

The Passport Strategy doesn't take the code_verifier param. I'll send a PR with this fix.

from node-openid-client.

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.