summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-22 14:48:07 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-22 14:48:07 -0700
commit29b7875c73d20f5607896e9f35a45d0a8bae4c54 (patch)
tree366e75702e11523690959eae0e6dc58a328d3491 /projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
parent4d2ec520fe9b42d0d0f1b764029a33dab906e68a (diff)
downloadDotNetOpenAuth-29b7875c73d20f5607896e9f35a45d0a8bae4c54.zip
DotNetOpenAuth-29b7875c73d20f5607896e9f35a45d0a8bae4c54.tar.gz
DotNetOpenAuth-29b7875c73d20f5607896e9f35a45d0a8bae4c54.tar.bz2
Ripped out OAuth 1.0 support from the OAuthServiceProvider sample.
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
index 3dafa0a..91a2ac3 100644
--- a/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
+++ b/projecttemplates/RelyingPartyLogic/OAuthAuthorizationServer.cs
@@ -151,6 +151,7 @@ namespace RelyingPartyLogic {
where
auth.Client.ClientIdentifier == clientIdentifier &&
auth.CreatedOnUtc <= issuedUtc &&
+ (!auth.ExpirationDateUtc.HasValue || auth.ExpirationDateUtc.Value >= DateTime.UtcNow) &&
auth.User.AuthenticationTokens.Any(token => token.ClaimedIdentifier == username)
select auth.Scope;