summaryrefslogtreecommitdiffstats
path: root/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-10-04 22:51:21 -0700
committerAndrew <andrewarnott@gmail.com>2008-10-04 22:51:21 -0700
commit01a2ce0ccba9d8ba9d562d10c22253a7336ccffd (patch)
treeaaec0b6b77442ae3c115b176c4b719c4a5423298 /samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
parentfb668f0e8800e6f507383a4c98e71761280b8898 (diff)
downloadDotNetOpenAuth-01a2ce0ccba9d8ba9d562d10c22253a7336ccffd.zip
DotNetOpenAuth-01a2ce0ccba9d8ba9d562d10c22253a7336ccffd.tar.gz
DotNetOpenAuth-01a2ce0ccba9d8ba9d562d10c22253a7336ccffd.tar.bz2
Added facility so WCF service knows who is calling it.
Diffstat (limited to 'samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs')
-rw-r--r--samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs b/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
index 20536d8..a53e6b9 100644
--- a/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
+++ b/samples/ServiceProvider/App_Code/OAuthAuthorizationManager.cs
@@ -20,10 +20,8 @@ public class OAuthAuthorizationManager : ServiceAuthorizationManager {
ServiceProvider sp = Constants.CreateServiceProvider();
var auth = sp.GetProtectedResourceAuthorization(httpDetails, requestUri);
if (auth != null) {
- string consumer = auth.ConsumerKey;
-
- //// TODO: pass the consumer along to the operation somehow
-
+ operationContext.IncomingMessageProperties["OAuthConsumerKey"] = auth.ConsumerKey;
+ operationContext.IncomingMessageProperties["OAuthAccessToken"] = auth.AccessToken;
return true;
}