--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5f1905c6-6256-4fe4-9352-be76c06fa1eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ian,If you want to use custom authentication methods, then you should probably sign your own tokens, which will allow you complete control over the process. It's a small learning curve in return for immense flexibility and options.Also, you may want to look at Anonymous auth if you're looking for a friction-free way to track user identity.☼, Kato
On Mon, Aug 29, 2016 at 9:15 PM, Ian <flo...@scheel.eu> wrote:
Hi everyone,We are new to Firebase Authentication and would like to use it to protect our web-based demo.For that demo we would like to send out login credentials, ideally like this:Your password is: newyorkIf Maria clicks, the website would only ask for the password and she could easily log in.However, Firebase Authentication requires an email address. That's why our idea was to do add demo users as us...@demo.ourdomain.com, e.g. ma...@demo.ourdomain.com.How do you think about this approach? Our app would convert the URL parameter into an email address and just ask the user for the password.Best regards,Ian
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5f1905c6-6256-4fe4-9352-be76c06fa1eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{
"displayName": null,
"email": "ma...@demo.ourdomain.com",
"emailVerified": false,
"photoURL": null,
"isAnonymous": false,
"uid": "9xYQklxxd8hWmReqQTgq3K0w06W2",
"refreshToken": "AJilOCNcRGTd8mj_..._kYPunlfBbpcit2PNKe2YoPG9UyqJ5h8gJ5QRAEg",
"providerData": [
{
"uid": "ma...@demo.ourdomain.com",
"displayName": null,
"photoURL": null,
"email": "ma...@demo.ourdomain.com",
"providerId": "password"
}
]
}
It should also be no problem to set var email to <username>@demo.ourdomain.com when the corresponding URL parameter is present.
By the way, when using Firebase email/password authentication is it possible to modify the currentUser object somehow somewhere to provide a displayName, for example?
Honestly, we are a bit lost, authentication and authorization are tricky. Is this how it would work?
- Maria opens the link http://demo.ourdomain.com/?user=maria in a browser.
- http://demo.ourdomain.com/?user=maria contains the Firebase Authentication JavaScript and authenticates her anonymously. (Q: Anonymous users don't show up in the Firebase Auth Users list as long as they haven't actually logged in, right?)
- http://demo.ourdomain.com/?user=maria asks for a password, which Maria enters and submits.
- On submit a request is sent to our API which verifies her login credentials and provides a token.
- (Q: This solution would require a user account management separately from Firebase Authentication, our server could not connect to Firebase to look for username and password there, right?)
- The token from the backend would be sent to Firebase and a new user with the given UID would be created and logged in, Maria could start using our SPA.
- When she decides to add her Google account, she would log into her Google account via Firebase and after she returns successfully from Google, her Google account would be linked to the UID initially provided by our API server. (Q: Do linked accounts show up as a single entry in Firebase Auth Users?)