diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-04-04 21:37:07 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-04-04 21:37:07 -0700 |
commit | fc28f55ea5d1e93030c042956d35d1503b12c01c (patch) | |
tree | 5ac7fb366881af15fbae24066c3d2a2216d326cf | |
parent | 82b27c9e437b688f1feff2891982facc3281e6e8 (diff) | |
download | DotNetOpenAuth-fc28f55ea5d1e93030c042956d35d1503b12c01c.zip DotNetOpenAuth-fc28f55ea5d1e93030c042956d35d1503b12c01c.tar.gz DotNetOpenAuth-fc28f55ea5d1e93030c042956d35d1503b12c01c.tar.bz2 |
Switch from Properties["OriginalHttpRequestUri"] to Via property.
Closes #19
-rw-r--r-- | projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs | 2 | ||||
-rw-r--r-- | samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs index 35af472..60ef046 100644 --- a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs +++ b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs @@ -29,7 +29,7 @@ namespace RelyingPartyLogic { } HttpRequestMessageProperty httpDetails = operationContext.RequestContext.RequestMessage.Properties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty; - Uri requestUri = operationContext.RequestContext.RequestMessage.Properties["OriginalHttpRequestUri"] as Uri; + Uri requestUri = operationContext.RequestContext.RequestMessage.Properties.Via; ServiceProvider sp = OAuthServiceProvider.ServiceProvider; try { var auth = sp.ReadProtectedResourceAuthorization(httpDetails, requestUri); diff --git a/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs b/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs index 6d5bfff..917a252 100644 --- a/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs +++ b/samples/OAuthServiceProvider/Code/OAuthAuthorizationManager.cs @@ -23,7 +23,7 @@ } HttpRequestMessageProperty httpDetails = operationContext.RequestContext.RequestMessage.Properties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty; - Uri requestUri = operationContext.RequestContext.RequestMessage.Properties["OriginalHttpRequestUri"] as Uri; + Uri requestUri = operationContext.RequestContext.RequestMessage.Properties.Via; ServiceProvider sp = Constants.CreateServiceProvider(); try { var auth = sp.ReadProtectedResourceAuthorization(httpDetails, requestUri); |