DotNetOpenAuth.GoogleOAuth2 icon indicating copy to clipboard operation
DotNetOpenAuth.GoogleOAuth2 copied to clipboard

GoogleOAuth2Client.RewriteRequest() Does not preserver QueryString Arguments in the "ReturnUrl"

Open groogiam opened this issue 10 years ago • 2 comments
trafficstars

The method GoogleOAuth2Client.RewriteRequest() does not preserve the "ReturnUrl" parameter completely. I have an ASP.NET web forms application that represents its routes using url parameters (see Below)

DataLayout.aspx?domain=MyModule&hierarchy=Proj;45886&tab=ProjectInformation

When my login page passes the return Url below in the format below it does not get unpackeck correctly as one coherent string. Instead the querystring parameters are separated out. E.g. hiearchy, domain, tab all become query variables in addition to the returnurl variable. This means that the restful links in my application no longer work when using this utility. Any help you can provide would be appreciated. Thanks

Login.aspx?ReturnUrl=%2App.Web%2fDataLayout.aspx%3fdomain%3dMyModule%26hierarchy%3dProj%3b45886%26tab%3dProjectInformation&domain=MyModule&hierarchy=Proj;45886&tab=ProjectInformation

groogiam avatar May 22 '15 22:05 groogiam

i'm currently experiencing this issue have you somehow got a work around for this?

JustAnotherDay avatar Apr 27 '18 14:04 JustAnotherDay

@JustAnotherDay - This project is now retired. There are better ways to do Google auth. See the note in the readme. Thanks.

mattjohnsonpint avatar Apr 27 '18 17:04 mattjohnsonpint