Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I pass the JWT to firebase from wp-auth0 #108

Closed
beatelite opened this issue Dec 25, 2015 · 1 comment
Closed

How do I pass the JWT to firebase from wp-auth0 #108

beatelite opened this issue Dec 25, 2015 · 1 comment

Comments

@beatelite
Copy link

I get that wp-auth authenticates my wp users into my install (and in auth0). What I am missing is instructions on how to pass that info into firebase.

I have followed this tutorial https://www.firebase.com/blog/2014-06-05-auth0-guest-blog.html

I have firebase and auth0 connected via a secret. Howeves, I'm stuck on where it says "obtain the firebase token".

The tricky part is that i'm building an angularjs app on top of wordpress. The app is only available to authenticated wp users so I'm not clear on where and how to obtain the firebase token for my users. Do I do it via this plugin? do I it via the JWT auth0 addon? Should I do it directly in the angular code?

Really appreciate any suggestions or guidance. Happy holidays!

@glena
Copy link
Contributor

glena commented Dec 28, 2015

You will need to hook to the login action go get the user id_token (the user jwt) and call the delegation endpoint with it to exchange for the firebase token (step 1. Obtaining Firebase tokens).

@glena glena closed this as completed Jan 21, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants