tiwarivikash / okta-auth-js-pkce-example

Implement the OAuth 2.0 Authorization Code with PKCE flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo let's you see the OAuth 2.0 Implicit flow and the Authorization Code with PKCE flow in action.

The Implicit flow is effectively deprecated and should no longer be used.

You need a free Okta Developer Org to get started.

In the admin console of your Okta org, Navigate to: Applications

  • Click the green Add Application button
  • Select Single-Page App application, and click Next
  • Give the app a Name.
  • Change the value for Login redirect URIs to http://localhost:8080/callback
  • Check Authorization Code (and leave Implicit clicked)
  • Click Done

Take note of the Client ID at the bottom of the page.

You need to edit the src/auth/index.js with your Okta domain and the Client ID value.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

About

Implement the OAuth 2.0 Authorization Code with PKCE flow


Languages

Language:JavaScript 54.5%Language:Vue 37.1%Language:HTML 8.4%