summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-12-25 14:27:17 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-12-25 22:44:48 -0800
commit99d55efac7b70a681c710d24f66320edd1efdd91 (patch)
tree1a98021a41ad7e03029c693d7ba10b99a6aef901
parent52c3b195c575aa2d850347536c2705d864b94950 (diff)
downloadDotNetOpenAuth-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.cs2
-rw-r--r--samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs2
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);