- Install Node.js
-
Clone or download this repository
-
Install modules using
npm install
-
Copy
.env.sample
to.env
-
Install the Okta CLI and run
okta register
to sign up for a new account, or if you already have an account, runokta login
. -
Set up a new Okta application
- Run
okta apps create
. Select the default app name, or change it as you see fit. - Choose Single Page App and press Enter.
- Press Enter to set the Redirect URI to
http://localhost:8080/callback
and accept the default Logout Redirect URI ofhttp://localhost:8080
. - Press Enter to set the Post Logout Redirect URI to
http://localhost:8080/
- Save your OKTA_ORG_URL and OKTA_CLIENT_ID
- Run
You'll also need to create a token in Okta.
-
To create the token:
- Sign in to your Okta organization using the OKTA_ORG_URL
- Access the API page: In the Admin Console, select API from the Security menu and then select the Tokens tab.
- Click Create Token.
- Name your token and click Create Token.
- Record the token value. This is the only opportunity to see it and record it.
-
Copy and paste your
OKTA_CLIENT_ID
,OKTA_TOKEN
, andOKTA_ORG_URL
into the.env
file as such.
OKTA_ORG_URL=https://{yourOktaOrgUrl}
OKTA_CLIENT_ID={yourClientId}
OKTA_TOKEN={yourToken}
Now you can run both the Node backend and the React frontend with the following command:
npm start
Apache 2.0, see LICENSE.