summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider/Code
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-04 18:51:45 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-04 18:51:45 -0700
commita4dcb24c11ccaf95bb6a2bc5ca505d2e19640cd4 (patch)
tree143fbe4d84c2994e9962cfe6bdb8c83ada99be0d /samples/OAuthServiceProvider/Code
parent43f5260542eb1b1b15c7f46f95c6034e8796d20e (diff)
downloadDotNetOpenAuth-a4dcb24c11ccaf95bb6a2bc5ca505d2e19640cd4.zip
DotNetOpenAuth-a4dcb24c11ccaf95bb6a2bc5ca505d2e19640cd4.tar.gz
DotNetOpenAuth-a4dcb24c11ccaf95bb6a2bc5ca505d2e19640cd4.tar.bz2
OAuth 2.0 sample works, draft 9 style.
Diffstat (limited to 'samples/OAuthServiceProvider/Code')
-rw-r--r--samples/OAuthServiceProvider/Code/DatabaseNonceStore.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/OAuthServiceProvider/Code/DatabaseNonceStore.cs b/samples/OAuthServiceProvider/Code/DatabaseNonceStore.cs
index 1f8f56e..f0c10d1 100644
--- a/samples/OAuthServiceProvider/Code/DatabaseNonceStore.cs
+++ b/samples/OAuthServiceProvider/Code/DatabaseNonceStore.cs
@@ -4,6 +4,7 @@
using System.Linq;
using System.Web;
using DotNetOpenAuth.Messaging.Bindings;
+ using System.Data.SqlClient;
/// <summary>
/// A database-persisted nonce store.
@@ -47,6 +48,8 @@
return true;
} catch (System.Data.Linq.DuplicateKeyException) {
return false;
+ } catch (SqlException) {
+ return false;
}
}