summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-07-15 00:38:39 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-07-15 00:38:39 -0700
commit85915f62c304f60d530439014e63abb0d6a728d8 (patch)
treeaeb09ea125441169d6ae9bf068faf412c64e080e /samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs
parent653b4dd198e686cbbc470e3af6aa6bab78a29b0d (diff)
downloadDotNetOpenAuth-85915f62c304f60d530439014e63abb0d6a728d8.zip
DotNetOpenAuth-85915f62c304f60d530439014e63abb0d6a728d8.tar.gz
DotNetOpenAuth-85915f62c304f60d530439014e63abb0d6a728d8.tar.bz2
Added OpenID+OAuth combined OP sample.
Diffstat (limited to 'samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs')
-rw-r--r--samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs b/samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs
new file mode 100644
index 0000000..de4505d
--- /dev/null
+++ b/samples/OpenIdProviderWebForms/Code/InMemoryConsumerDescription.cs
@@ -0,0 +1,31 @@
+//-----------------------------------------------------------------------
+// <copyright file="InMemoryConsumerDescription.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace OpenIdProviderWebForms.Code {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Web;
+ using DotNetOpenAuth.OAuth.ChannelElements;
+
+ public class InMemoryConsumerDescription : IConsumerDescription {
+ #region IConsumerDescription Members
+
+ public string Key { get; set; }
+
+ public string Secret { get; set; }
+
+ public System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate { get; set; }
+
+ public Uri Callback { get; set; }
+
+ public DotNetOpenAuth.OAuth.VerificationCodeFormat VerificationCodeFormat { get; set; }
+
+ public int VerificationCodeLength { get; set; }
+
+ #endregion
+ }
+}