Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Jwt authentication with Google OAuth WEB API (ASP.Net Core)

$
0
0

I'm new to asp.net core. I'm trying to create a simple WEB API with asp.net which uses Jwt Token and Google OAuth.

About JWT, I've followed this tutorial and succeeded : https://stormpath.com/blog/token-authentication-asp-net-core

But I don't know how to do my authentication with Google OAuth in my WEB API system. What I think about is :

  • Because WEB API doesn't have view, a client app (Desktop App, iOS App) willget authentication code and exchange that code for access_token.

  • Web API receives access_token comes from client, send request to Google to verify the token and do authentication.

My question is :

  • Is my implementation correct?

  • How to implement it by code ?

Thank you,


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>