External Authentication Appnet Web Api

I am using https://github.com/EddyVerbruggen/cordova-plugin-googleplus for external authentication in a mobile app. In response from google I get the following:

obj.email          // 'email@gmail.com'
obj.userId         // user id
obj.displayName    // 'My Name'
obj.idToken        // idToken that can be exchanged to verify user identity.
obj.serverAuthCode // Auth code that can be exchanged for an access token and refresh token for offline access

      

I am interested in taking this answer and posting it to my .Net Web API for user registration / login.

I was wondering how I would format the HTTP request from my client and what the method in AccountController.cs would look like to handle the request correctly and pass back a local token that will be used throughout the rest of the application.

+3
asp.net asp.net-web-api ionic-framework ionic2 asp.net-web-api2


source to share


No one has answered this question yet

Check out similar questions:

1153
How do I get ASP.NET Web API to return JSON instead of XML using Chrome?
818
ASP.NET Web Site or ASP.NET Web Application?
392
WCF vs ASP.NET Web API
67
Registering external Web APIs 2 from multiple API clients with OWIN authentication
55
Simple JWT Authentication in ASP.NET Core 1.0 Web Frontend
38
ASP.NET Web API Social Authentication for Web and Mobile
fourteen
Update user identity requirements in the web interface
3
OAuth Web API 2 Token IDs with Custom Authentication
1
Web API + Identity + JWT + OIDC External Providers
0
how to use google idtoken to authenticate user to web api?



All Articles
Loading...
X
Show
Funny
Dev
Pics