Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Switch from Properties["OriginalHttpRequestUri"] to Via property.
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
AArnott committed Apr 5, 2011
1 parent 82b27c9 commit fc28f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected override bool CheckAccessCore(OperationContext operationContext) {
}

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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected override bool CheckAccessCore(OperationContext operationContext) {
}

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);
Expand Down

0 comments on commit fc28f55

Please sign in to comment.