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 can I get the user authentication data? #39

Open
francesco98 opened this issue Apr 11, 2016 · 7 comments
Open

How can I get the user authentication data? #39

francesco98 opened this issue Apr 11, 2016 · 7 comments

Comments

@francesco98
Copy link

I can easily read or write data, but what about user authentication data?

@alexsup
Copy link

alexsup commented Apr 14, 2016

Can you expand on what you mean by user authentication data?

This client is for basic Firebase interactions. There are a number of pull requests to improve this but this repo isn't maintained.

@ktamas77
Copy link
Owner

@francesco98 could you please elaborate?

@gbittmann
Copy link

I think he might be asking what I'm about to ask.

Can you validate a JWT token from the javascript client with this project? People who were using gitkit for authentication are now going to be using Firebase authentication so this should come up a lot.

Basically a php variation of the functionality provided currently in the Java and Node SDKs.

https://firebase.google.com/docs/auth/server#verify_id_tokens

String idToken;  // Get the user's ID token from the client app

FirebaseAuth.getInstance().verifyIdToken(idToken)
    .addOnSuccessListener(new OnSuccessListener<FirebaseToken>() {
        @Override
        public void onSuccess(FirebaseToken decodedToken) {
          String uid = decodedToken.getUid();
          // ...
        }
});

@tiagojlara
Copy link

+1

@jonmalave
Copy link

Any plans to add user authentication?

@ruudboon
Copy link

ruudboon commented Feb 4, 2017

+1

1 similar comment
@gusdevops
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants