© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
3 replies
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
ASP.NET Web API
but I can't find any recent tutorial on that topic. Microsoft's official tutorial is for
RazorPages
RazorPages
only and tells you to add
AddAuthentication().AddGoogle()
AddAuthentication().AddGoogle()
and everything should work. I want to create it for
Web API
Web API
because I need it for the
React
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
Identity
in
Web API
Web API
in general? Also, I used it about 2 years ago and I had to create routes like
register
register
and
login
login
by myself using
userManager
userManager
and
signInManager
signInManager
etc, now the tutorial suggests using
MapIdentityApi
MapIdentityApi
which serves pre-made routes which I can't modify. Is it a new way to use
Identity
Identity
or it's just made for simplicity in tutorial only?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Maui Firebase Google Sign in issue.
C#CC# / help
7mo ago
❔ Identity server using problems.
C#CC# / help
3y ago
Possible to 'intercept' a successful sign in attempt with .net core identity?
C#CC# / help
4y ago
❔ Customizing assigned roles on sign in using SignInManager
C#CC# / help
4y ago