Skip to content

Oleksandr-kopaevich/client-okta-integration-with-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What for?

This is frontend part of integration with Okta and Firebase.

Live demo

https://explore-firebase-37b42.web.app/ - Uses Firebase hosting for frontend part (React application) and Firebase functions for backend part (Nestjs application)

How to start

  1. Create .env file and fill next variables:

REACT_APP_OKTA_ORG_URL - You can copy your domain from the Okta Admin Console. (without 'https://')
REACT_APP_OKTA_CLIENT_ID - Find it in "Applications" section

Take these values from firebase project setting
REACT_APP_FIREBASE_apiKey
REACT_APP_FIREBASE_authDomain
REACT_APP_FIREBASE_projectId
REACT_APP_FIREBASE_storageBucket
REACT_APP_FIREBASE_messagingSenderId
REACT_APP_FIREBASE_appId
REACT_APP_FIREBASE_measurementId

REACT_APP_CUSTOM_TOKEN_ENDPOINT - Full URL to send JWT token to
REACT_APP_CUSTOM_TOKEN_ENDPOINT_LOCALHOST - Same usage as CUSTOM_TOKEN_ENDPOINT but for local development we may need another URL

  1. Run to install node modules
npm i

and make sure thay your Firebase CLI is up to date

npm install -g firebase-tools
  1. To run locally type
npm run start
  1. Or deploy app to firebase hosting
npm run deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published