summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-05-31 23:11:30 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-05-31 23:11:30 -0700
commitf00c9430bb49d0dcd54005c852fd2b7d7de2ce7e (patch)
treed92e72ff24191c3315078b438ea6204af9ab17dc /samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
parent7f625de00c6daafd1c8e21b27b4b2dce8ce224b0 (diff)
downloadDotNetOpenAuth-f00c9430bb49d0dcd54005c852fd2b7d7de2ce7e.zip
DotNetOpenAuth-f00c9430bb49d0dcd54005c852fd2b7d7de2ce7e.tar.gz
DotNetOpenAuth-f00c9430bb49d0dcd54005c852fd2b7d7de2ce7e.tar.bz2
Lots of refactoring as we gather the token handling into centralized code.
Diffstat (limited to 'samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs')
-rw-r--r--samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs b/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
index 70474f2..6a36a83 100644
--- a/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
+++ b/samples/OAuthServiceProvider/Code/OAuth2AuthorizationServer.cs
@@ -8,6 +8,7 @@
using DotNetOpenAuth.Messaging.Bindings;
using DotNetOpenAuth.OAuth.ChannelElements;
using DotNetOpenAuth.OAuthWrap;
+ using DotNetOpenAuth.OAuthWrap.ChannelElements;
internal class OAuth2AuthorizationServer : IAuthorizationServer {
private static readonly byte[] secret;
@@ -42,5 +43,10 @@
}
#endregion
+
+ public bool IsAuthorizationValid(IAuthorizationDescription authorization) {
+ // We don't support revoking tokens yet.
+ return true;
+ }
}
} \ No newline at end of file