summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-12-13 15:25:54 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-12-13 15:25:54 -0800
commit39dacc2ff566232076eb4dc39f6d57e1ced4913e (patch)
tree100b82887033c9bc6d700f549ef1b4f1766f3de7 /projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs
parentab55daeac668ff4fe38daa458df08aa4b8b2d3a3 (diff)
parent072a488bd47854ec5475a1a2a7a42fd5b0e7a88b (diff)
downloadDotNetOpenAuth-39dacc2ff566232076eb4dc39f6d57e1ced4913e.zip
DotNetOpenAuth-39dacc2ff566232076eb4dc39f6d57e1ced4913e.tar.gz
DotNetOpenAuth-39dacc2ff566232076eb4dc39f6d57e1ced4913e.tar.bz2
Merge branch 'v3.3'
Conflicts: src/DotNetOpenAuth.vsmdi src/version.txt
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs b/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs
index be53180..4ae50ce 100644
--- a/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs
+++ b/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs
@@ -30,7 +30,7 @@ namespace RelyingPartyLogic {
/// <exception cref="KeyNotFoundException">Thrown if the consumer key cannot be found.</exception>
public IConsumerDescription GetConsumer(string consumerKey) {
try {
- return Database.DataContext.Consumer.First(c => c.ConsumerKey == consumerKey);
+ return Database.DataContext.Consumers.First(c => c.ConsumerKey == consumerKey);
} catch (InvalidOperationException) {
throw new KeyNotFoundException();
}
@@ -47,7 +47,7 @@ namespace RelyingPartyLogic {
/// been authorized, has expired or does not exist.
/// </returns>
public bool IsRequestTokenAuthorized(string requestToken) {
- return Database.DataContext.IssuedToken.OfType<IssuedRequestToken>().Any(
+ return Database.DataContext.IssuedTokens.OfType<IssuedRequestToken>().Any(
t => t.Token == requestToken && t.User != null);
}
@@ -65,7 +65,7 @@ namespace RelyingPartyLogic {
/// </remarks>
public IServiceProviderRequestToken GetRequestToken(string token) {
try {
- return Database.DataContext.IssuedToken.OfType<IssuedRequestToken>().First(tok => tok.Token == token);
+ return Database.DataContext.IssuedTokens.OfType<IssuedRequestToken>().First(tok => tok.Token == token);
} catch (InvalidOperationException) {
throw new KeyNotFoundException();
}
@@ -85,7 +85,7 @@ namespace RelyingPartyLogic {
/// </remarks>
public IServiceProviderAccessToken GetAccessToken(string token) {
try {
- return Database.DataContext.IssuedToken.OfType<IssuedAccessToken>().First(tok => tok.Token == token);
+ return Database.DataContext.IssuedTokens.OfType<IssuedAccessToken>().First(tok => tok.Token == token);
} catch (InvalidOperationException) {
throw new KeyNotFoundException();
}