2013-01-12 51 views
0

我正在嘗試使用谷歌oauth2驗證我的web應用程序。我使用vb.net作爲代碼。使用谷歌oauth2驗證我的web應用程序

在第一步驟I中添加其重定向到https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state=%2Fprofile&redirect_uri=http%3A%2F%2Flocalhost:2690%2Ftest1.aspx&response_type=code&client_id=XXX.apps.googleusercontent.com

超鏈接現在從碼接收代碼後,我使用的代碼上test1.aspx

​​

每次的頁面加載我正在錯誤的請求服務器錯誤。請幫我找出我做錯了什麼。我也嘗試使用dotnetopenauth,但每個示例都使用mvc和c#,我只知道vb.net。 感謝您的幫助...。

回答

0

此代碼是否對URL請求的正文中的值進行了編碼。

另請注意,代碼將被交換一次用於代幣。

相關問題