mattjohnsonpint / DotNetOpenAuth.GoogleOAuth2

DotNetOpenAuth OAuth2 Client for Google
23 stars 18 forks source link

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

Open groogiam opened 9 years ago

groogiam commented 9 years ago

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

JustAnotherDay commented 6 years ago

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

mattjohnsonpint commented 6 years ago

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