An online tool to generate code verifier and code challenge for OAuth with PKCE.
URL: https://tonyxu-io.github.io/pkce-generator/
Reference: rfc-7636
Author: Tony Xu
Contributors:
Code Verifier and Code Challenge Generator for OAuth with PKCE
Home Page: https://tonyxu-io.github.io/pkce-generator/
License: MIT License
An online tool to generate code verifier and code challenge for OAuth with PKCE.
URL: https://tonyxu-io.github.io/pkce-generator/
Reference: rfc-7636
Author: Tony Xu
Contributors:
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,
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?
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.
I just wanted to let you know that this project helped me understand the RFC https://tools.ietf.org/html/rfc7636#appendix-A and figure out what was wrong with my pkce generator. Thank you so much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.