This project is the sample CLI application code for the blog post Build a Command Line Application with Node.js. This sample app demonstrates using Node.js to build a CLI application that can use PKCE to authenticate with an OAuth 2.0 API. Please read the blog post for more information!
To use this code, you will need the following:
To successfully run this project you will need to:
npm install
from the command line in the project folder..env.sample
to .env
okta register
to sign up for a new account. Use okta login
if you already have an account.okta apps create
. Select the default app name, or change it as you see fit. Choose Native and use http://localhost:8080/callback
for the Redirect URI. Set the Logout Redirect URI to http://localhost:8080
..env
with your Issuer and application's Client IDnpm install -g .
After installing the CLI app globally, you will have two commands you can use: hello
and pkce-login
.
Enjoy!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4