Giter Site home page Giter Site logo

pkce-generator's Introduction

pkce-generator's People

Contributors

felixlinker avatar tonyxu-io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pkce-generator's Issues

Code verifier and code challenge terms need to be interchanged

Hi @tonyxu-io,

First of all thanks a lot for hosting this tool. It makes life so much easier when testing the PKCE flows.

When a read through https://tools.ietf.org/html/rfc7636, a small question came into my mind. In the tool,

image

The code challenge seems to be a 43 character random string and the code verifier is the base64URLencoded value of the sha256 hash of the code challenge.

However, the spec https://tools.ietf.org/html/rfc7636 defines the two terms/names in the opposite way.

ie. code verifier is the 43 - 128 character random string (https://tools.ietf.org/html/rfc7636#section-4.1)

code challenge is the transformation of the code verifier (https://tools.ietf.org/html/rfc7636#section-4.2)

Is this understanding correct? Should we fix the interchange the name of the two values in tool?

Code verifier too short

Your code is not generating a code verifier that is long enough, the RFC requiers a minimum of 43 characters.

code_verifier = high-entropy cryptographic random STRING using the
unreserved characters [A-Z] / [a-z] / [0-9] / “-” / “.” / “_” / “~”
from Section 2.3 of [RFC3986], with a minimum length of 43 characters
and a maximum length of 128 characters.

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.