C
C#7mo ago
Alex

✅ Google External sign in using Identity

I want to learn how to implement a google external sign-in route (and Identity in general) in my ASP.NET Web API but I can't find any recent tutorial on that topic. Microsoft's official tutorial is for RazorPages only and tells you to add AddAuthentication().AddGoogle() and everything should work. I want to create it for Web API because I need it for the React front end. I found a few tutorials but they are 3-5 years old. Can you suggest any tutorials on this topic or for Identity in Web API in general? Also, I used it about 2 years ago and I had to create routes like register and login by myself using userManager and signInManager etc, now the tutorial suggests using MapIdentityApi which serves pre-made routes which I can't modify. Is it a new way to use Identity or it's just made for simplicity in tutorial only?
2 Replies
im_blind
im_blind5mo ago
hi @Alex I'm also looking to do the same, have you been able to implement it yet? .
Alex
AlexOP5mo ago
No i haven't I switched to email password authentication for this project. I can recommend look through Pro ASP.NET Core Identity book which describes this topic closely
Want results from more Discord servers?
Add your server