0.1.0 • Published 5 years ago
@andrew.vanbeekokta/okta-node-cli-example v0.1.0
Okta Node.js Command Line Application Example
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:
- A recent version of Node.js downloaded and installed
- A good text editor, such as Visual Studio Code
- A free Okta developer account
To successfully run this project you will need to:
- Clone or download the source code.
- Run
npm install
from the command line in the project folder. - Copy
.env.sample
to.env
- Create a "native" application in Okta
- Update
.env
with your Okta developer URL and application's Client ID - Install the CLI app globally using
npm install -g .
After installing the CLI app globally, you will have two commands you can use: hello
and pkce-login
.
Enjoy!
0.1.0
5 years ago