Skip to content

joshcanhelp/node-util-app

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Auth0 Utility App

A simple Express application to assist with testing, PoCs, and other random things.

Getting Started

$ git clone git@github.com:joshcanhelp/node-util-app.git
$ cd node-util-app
$ npm install
$ cp .example.env .env
$ vim .env

Create a Regular Web Application in Auth0 and use the Client ID and Domain values in the .env file you created above.

# .env

SECRET=Long, random string
ISSUER_BASE_URL=Your Auth0 domain prepended with https://
CLIENT_ID=The Client ID for this application from Auth0

If you are requesting an access token to call an API, also add the following:

# .env

CLIENT_SECRET=The Client Secret for this application from Auth0
API_AUDIENCE=The API identifier from Auth0
API_SCOPES=Permissions requested

If you want to create a post in WordPress, also add the following:

# .env

WP_BASE_URL=Direct URL to a WordPress instance

The app should be ready to go!

$ npm start
$ open http://localhost:3000

Click login, use any identity provider, and you should end up back in your local app with a Logout link.

About

A simple Express application to assist with testing, PoCs, and other random things.

Resources

Stars

Watchers

Forks

Packages

No packages published