Okta integration with Firebase

Has anyone integrated Okta with Firebase?

I want to use Okta for auth rather than the Firebase, however, I am running into a lot of issues.

I tried to login to Firebase using the Okta access token, using the Firebase method “signInWithCustomToken”.
However, it looks like Firebase needs a very specific JWT format which is different from the Okta produced one.

Right now I am planning to redirect from Okta login to a server where I can re-encode the JWT token in the format Firebase wants it, however, I’m running into problems because for the redirect URL, the token is provided in the # part of the URL, hence I can’t access from the server.

I feel like I’m doing something very wrong here!

Any help or pointers are greatly appreciated.

@mkeftz I am researching the same topic you are mentioning.

Did you happen to find any guides in Firebase or Okta documentation that demonstrates how to use Okta as the provider of user’s / authorization / authentication along with the Firebase Realtime DB with rules that point to a copy of a user in the Firebase Auth DB?

I’m also considering not having the Firebase Auth DB populated with any user at all, and I’ll just build a Cloud Function to call into with the tokens from Okta to insert a record to use when permissioning the records in my firebase DB. So far just haven’t found much to help in terms of using Firebase in a production scenario.

The only examples I’ve seen so far are relevant to running Realtime DB with extremely relaxed rules.