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

posted @ 2015-12-28 16:29  天际翔龙  阅读(195)  评论(0)    收藏  举报