Hey guys ,
Can anyone explain how authentication services generally works ?
- I'm planning to use Azure mobile apps which already implements some providers like google & facebook
Let's say you download an app for the first time - click "Proceed with facebook" , add your email/password and validate.
You are now signed in to the app with facebook but how does it work in the backend ?
Does the server automatically register a user with that email ?
------------My thinking was :
- Have a custom registration/login system with a users database
-When someone signs in with facebook , check if the emails exists in my user db .
(if yes , sign in with that user else create an account with that email and then sign in the user)
One issue here with creating the account automatically is the password...do we create a random password ?