Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)