Sign inSign up

woov/firebase-auth

By woov

Updated over 8 years ago

Generate a Firebase JWT token based on the Facebook Authentication Token for your Facebook Test user

Image
0

1.0K

woov/firebase-auth repository overview

Firebase auth dockerfile

Given the required facebook and firebase auth parameters you can generate a JWT token for a user like this:

docker run woov/firebase-auth:latest \
 -e FACEBOOK_APP_ID=123456 \
 -e FACEBOOK_APP_SECRET=001122aabbcc \
 -e FACEBOOK_INTENDED_USER=1 \
 -e FIREBASE_API_KEY=AbCdEfGhIjK \
 -e FIREBASE_AUTH_DOMAIN=my-app-name.firebaseapp.com

If successful, a JWT token is returned.

Required environment variables

  • FACEBOOK_APP_ID: The id of the facebook app. Can be found in the facebook developer console > Settings > Basic.
  • FACEBOOK_APP_SECRET: The app secret for the facebook app. Can be found in the facebook developer console > Settings > Basic.
  • FACEBOOK_INTENDED_USER: The id of the user to get a token for. This user should have the app installed.
  • FIREBASE_API_KEY
  • FIREBASE_AUTH_DOMAIN

Tag summary

Content type

Image

Digest

Size

47.8 MB

Last updated

over 8 years ago

docker pull woov/firebase-auth