What for?
This small repo helps to understand how to do integration with Okta and Firebase. What processes exist in the app and how manage all of them.
Note: hide credentials before deploy to production!
Make sure you have the following tools ready before you start working on a solution:
- node.js 12.x or newer
- npm or yarn
Endpoints
Here is a route, that client uses to create custom token
GET http://localhost:3000/firebaseCustomToken
- returns firebase token
Develop
To run as dev, run the following:
yarn
- install node modulesyarn run dev
- run server.js with nodemon
or
npm i
- install node modulesnpm run dev
- run server.js with nodemon
Process
- Login with Okta credentials
- Send oktaUid (jwt) to the
/firebaseCustomToken
- Generate firebaseToken
- Auth client with firebase token
Demo
To login use your Okta credentials.
All admin/client credenttials have to be stored securely, use .env
to hide them.
For the testing purpose only.