diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-12-25 14:27:17 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-12-25 22:44:48 -0800 |
commit | 99d55efac7b70a681c710d24f66320edd1efdd91 (patch) | |
tree | 1a98021a41ad7e03029c693d7ba10b99a6aef901 | |
parent | 52c3b195c575aa2d850347536c2705d864b94950 (diff) | |
download | DotNetOpenAuth-99d55efac7b70a681c710d24f66320edd1efdd91.zip DotNetOpenAuth-99d55efac7b70a681c710d24f66320edd1efdd91.tar.gz DotNetOpenAuth-99d55efac7b70a681c710d24f66320edd1efdd91.tar.bz2 |
Replaced WCF "OriginalHttpRequestUri" property with simple Via.
Thanks to Jamie Mutton for suggesting this.
-rw-r--r-- | projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs | 2 | ||||
-rw-r--r-- | samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs index 77cd4da..9ecea92 100644 --- a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs +++ b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs @@ -30,7 +30,7 @@ namespace RelyingPartyLogic { } var httpDetails = operationContext.RequestContext.RequestMessage.Properties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty; - var requestUri = operationContext.RequestContext.RequestMessage.Properties["OriginalHttpRequestUri"] as Uri; + var requestUri = operationContext.RequestContext.RequestMessage.Properties.Via; var tokenAnalyzer = new SpecialAccessTokenAnalyzer(OAuthAuthorizationServer.AsymmetricKey, OAuthAuthorizationServer.AsymmetricKey); var resourceServer = new ResourceServer(tokenAnalyzer); diff --git a/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs b/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs index d2d95fe..50c25c8 100644 --- a/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs +++ b/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs @@ -26,7 +26,7 @@ } var httpDetails = operationContext.RequestContext.RequestMessage.Properties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty; - var requestUri = operationContext.RequestContext.RequestMessage.Properties["OriginalHttpRequestUri"] as Uri; + var requestUri = operationContext.RequestContext.RequestMessage.Properties.Via; try { var principal = VerifyOAuth2(httpDetails, requestUri); |