MVC使用Google OAuth[OWIN]注意事項

1.前提條件,申請一個client id,頁面:https://console.developers.google.com/

2.添加連接域名,javascript那欄位為域名即可,另一欄需要加上具體signin-google, 域名用http://loaclhost也可以  如http://localhost/TestSite/signin-google

3.記得開通Google+ Api,否則在運行AuthenticationManager.GetExternalLoginInfoAsync()時一直會返回null

原文地址:https://www.cnblogs.com/ywkpl/p/5082989.html