summaryrefslogtreecommitdiffstats
path: root/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-11-01 20:57:22 -0700
committerAndrew <andrewarnott@gmail.com>2008-11-01 20:57:22 -0700
commite3b0e50c390de98c9aadcf10451fd17611ad431b (patch)
treef182aa5ee46b1dc3086b4ca0693b41ab84d03032 /samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
parentdb11b0a9fa4a304400ca1223427c3ca37f10004e (diff)
downloadDotNetOpenAuth-e3b0e50c390de98c9aadcf10451fd17611ad431b.zip
DotNetOpenAuth-e3b0e50c390de98c9aadcf10451fd17611ad431b.tar.gz
DotNetOpenAuth-e3b0e50c390de98c9aadcf10451fd17611ad431b.tar.bz2
Hugely refactored ServiceProvider and Consumer classes.
Messages are now exposed in the method signatures instead of raw Response instances.
Diffstat (limited to 'samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs')
-rw-r--r--samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs b/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
index 02118f8..9d2e3e9 100644
--- a/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
+++ b/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
@@ -19,7 +19,7 @@ public class OAuthAuthorizationManager : ServiceAuthorizationManager {
HttpRequestMessageProperty httpDetails = operationContext.RequestContext.RequestMessage.Properties[HttpRequestMessageProperty.Name] as HttpRequestMessageProperty;
Uri requestUri = operationContext.RequestContext.RequestMessage.Properties["OriginalHttpRequestUri"] as Uri;
ServiceProvider sp = Constants.CreateServiceProvider();
- var auth = sp.GetProtectedResourceAuthorization(httpDetails, requestUri);
+ var auth = sp.ReadProtectedResourceAuthorization(httpDetails, requestUri);
if (auth != null) {
var accessToken = Global.DataContext.OAuthTokens.Single(token => token.Token == auth.AccessToken);