Git Product home page Git Product logo

Comments (2)

james-d-elliott avatar james-d-elliott commented on May 26, 2024

This does not look like it's accurate to me. This function seems to only be used when basic auth is missing; see these lines. If the basic auth header is present then the function returns. The section of the function you've mentioned is attempting to parse the POST data which MUST be escaped per standard HTTP POST Form semantics, specifically the client secret, not the client credentials grant. This is also indicated by the error.

Never mind, I've read this incorrectly. I suspect this may be one of the inconsistent issues surrounding this scheme specifically, and there are a few if I recall. Will look more into it.

from fosite.

aeneasr avatar aeneasr commented on May 26, 2024

The spec does indeed very clearly require url decoding for these two parameters:

Clients in possession of a client password MAY use the HTTP Basic
authentication scheme as defined in [RFC2617] to authenticate with
the authorization server. The client identifier is encoded using the
"application/x-www-form-urlencoded" encoding algorithm per
Appendix B, and the encoded value is used as the username; the client
password is encoded using the same algorithm and used as the
password. The authorization server MUST support the HTTP Basic
authentication scheme for authenticating clients that were issued a
client password.

https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1

from fosite.

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.