Skip to content
This repository has been archived by the owner on Nov 3, 2018. It is now read-only.

The remote server returned an error: (400) Bad Request #9

Open
ProNotion opened this issue Nov 6, 2014 · 0 comments
Open

The remote server returned an error: (400) Bad Request #9

ProNotion opened this issue Nov 6, 2014 · 0 comments

Comments

@ProNotion
Copy link

At the OAuthWebSecurity.VerifyAuthentication() stage I am getting a 400 error with the following abbreviated stack trace :

[WebException: The remote server returned an error: (400) Bad Request.]
   System.Net.HttpWebRequest.GetResponse() +6518932
   DotNetOpenAuth.GoogleOAuth2.GoogleOAuth2Client.QueryAccessToken(Uri returnUrl, String authorizationCode) +647
   DotNetOpenAuth.AspNet.Clients.OAuth2Client.VerifyAuthentication(HttpContextBase context, Uri returnPageUrl) +142
   DotNetOpenAuth.AspNet.OpenAuthSecurityManager.VerifyAuthentication(String returnUrl) +239
   Microsoft.Web.WebPages.OAuth.OAuthWebSecurity.VerifyAuthenticationCore(HttpContextBase context, String returnUrl) +129
   Microsoft.Web.WebPages.OAuth.OAuthWebSecurity.VerifyAuthentication(String returnUrl) +86
   Microsoft.Web.WebPages.OAuth.OAuthWebSecurity.VerifyAuthentication() +7

I should probably add that yes I am called GoogleOAuth2Client.RewriteRequest(); before OAuthWebSecurity.VerifyAuthentication().

Any ideas on why this might be happening?

Thanks, Simon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant