-
Create your own okta-developer account and sign in to Okta: https://developer.okta.com/login/.
-
Register your application by selecting Applications -> Create App Integration. On the next screen, choose OIDC and Single Page App and click Next.
On the next screen, edit the application settings. App integration name: Application name
-
Configure your app as follows:
Base URI: http://localhost:3000
Login redirect URI: http://localhost:3000/callback
Logout redirect URI: http://localhost:3000
-
Once you have completed the form, you will be given a client ID.
You will also need the issuer value for your Okta org.
For example, https://okta-domain.okta.com/oauth2/default
-
Add these values client ID and issuer value in .env as environment variables.
This project was bootstrapped with Create React App. In the project directory:
Please refer: https://github.com/Prashika/okta-react-sample-app.git
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes in source code.
You may also see any lint errors in the console.