Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronpk/pkce-vanilla-js
A demonstration of the OAuth PKCE flow in plain JavaScript
https://github.com/aaronpk/pkce-vanilla-js
Last synced: 19 days ago
JSON representation
A demonstration of the OAuth PKCE flow in plain JavaScript
- Host: GitHub
- URL: https://github.com/aaronpk/pkce-vanilla-js
- Owner: aaronpk
- License: mit
- Created: 2019-04-19T20:48:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-01T14:55:50.000Z (over 5 years ago)
- Last Synced: 2024-04-12T19:53:04.896Z (7 months ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 126
- Watchers: 4
- Forks: 40
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OAuth PKCE Demo in Vanilla JS
=============================Read more about this code: [Is the OAuth 2.0 Implicit Flow Dead?](https://developer.okta.com/blog/2019/05/01/is-the-oauth-implicit-flow-dead)
This is a demonstration of doing a complete OAuth Authorization Code flow with PKCE in pure JavaScript. No external libraries are used.
To run this demo, you'll need to configure your OAuth server and client information in the HTML file.
This demonstration uses the following browser APIs which may not be available in all browsers:
* [window.crypto.getRandomValues](https://caniuse.com/#feat=getrandomvalues)
* [window.crypto.subtle.digest](https://caniuse.com/#feat=cryptography)
* [TextEncoder](https://caniuse.com/#feat=textencoder)