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
source to share
No one has answered this question yet
Check out similar questions: