PKCE Flow Sample

This is a demo on how to get a token using the PKCE flow.
SPOILER: This flow cannot be used from a browser. This flow is added for demonstration purposes only!

This page redirects you to the login website, to authenticate and retrieve a code.

Steps:
  1. Setup a web server.
  2. Copy files from Github to "http://localhost/openapi-samples-js/authentication/oauth2-pkce-flow/".
  3. Optional: Create your own app with the redirect URL of your choice.


(Find your App Key here)







Response:
Click button to launch function.

JS code:
Click button to show code.