Vote count: 0
I am building an Authentication platform which also enables users to login with External OAuth providers such as Facebook
, Google
, Twitter
, LinkedIn
, Github
. I used OpenID connect
to authenticate users through these providers. But my question is How does this work ? To be more detailed;
- User comes to my website and he tries to access some resources.
- He will be redirected to a login page which has
username
andpassword
along with options to login fromGoogle
,Facebook
etc. - User choses to login from
Google
then he is redirected to Google login page, There he enters username and password and accepts Consent. - He is redirected back to
redirect uri
i specified which is an API in my code.
My Questions are :
- What i need to do in that API, Do i have to create a user in my database on first time? Do i have to create
user claims
returned fromGoogle
for that user? -
I have seen a table called
UserLogins
in Microsoft Identity. Is that table for External logins ? This table hasUserId
column. So this table has foreign key of Users Table. -
Can a user have multiple external logins along with local login ?
-
Any working sample on External logins with persistent layer?
Thanks for your help!!
asked 49 secs ago
External Logins with Facebook, Google etc
Aucun commentaire:
Enregistrer un commentaire