summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyWebForms
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms')
-rw-r--r--samples/OpenIdRelyingPartyWebForms/.gitignore5
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs139
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.Designer.cs976
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.cs4
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsc9
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsd49
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xss13
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet1.Designer.cs1111
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/State.cs45
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/TracePageAppender.cs13
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Default.aspx13
-rw-r--r--samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx16
-rw-r--r--samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.cs57
-rw-r--r--samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.designer.cs42
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Global.asax1
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Global.asax.cs78
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/Default.aspx37
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx22
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.cs50
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.designer.cs69
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx75
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.cs13
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.designer.cs25
-rw-r--r--samples/OpenIdRelyingPartyWebForms/MembersOnly/Web.config18
-rw-r--r--samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx47
-rw-r--r--samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.cs91
-rw-r--r--samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.designer.cs123
-rw-r--r--samples/OpenIdRelyingPartyWebForms/OpenIdRelyingPartyWebForms.csproj318
-rw-r--r--samples/OpenIdRelyingPartyWebForms/PrivacyPolicy.aspx7
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Properties/AssemblyInfo.cs35
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Settings.StyleCop1
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Site.Master39
-rw-r--r--samples/OpenIdRelyingPartyWebForms/TracePage.aspx16
-rw-r--r--samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs20
-rw-r--r--samples/OpenIdRelyingPartyWebForms/TracePage.aspx.designer.cs43
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Web.config127
-rw-r--r--samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx100
-rw-r--r--samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.cs63
-rw-r--r--samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.designer.cs105
-rw-r--r--samples/OpenIdRelyingPartyWebForms/favicon.icobin1150 -> 0 bytes
-rw-r--r--samples/OpenIdRelyingPartyWebForms/images/DotNetOpenAuth.pngbin25212 -> 0 bytes
-rw-r--r--samples/OpenIdRelyingPartyWebForms/images/attention.pngbin714 -> 0 bytes
-rw-r--r--samples/OpenIdRelyingPartyWebForms/images/openid_login.pngbin457 -> 0 bytes
-rw-r--r--samples/OpenIdRelyingPartyWebForms/images/yahoo.pngbin7607 -> 0 bytes
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx38
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx.cs64
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs60
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx16
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.cs51
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.designer.cs33
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx30
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.cs87
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.designer.cs60
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx34
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.cs75
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.designer.cs87
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx15
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.cs126
-rw-r--r--samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.designer.cs69
-rw-r--r--samples/OpenIdRelyingPartyWebForms/logout.aspx14
-rw-r--r--samples/OpenIdRelyingPartyWebForms/packages.config7
-rw-r--r--samples/OpenIdRelyingPartyWebForms/styles.css10
-rw-r--r--samples/OpenIdRelyingPartyWebForms/xrds.aspx29
63 files changed, 0 insertions, 4920 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/.gitignore b/samples/OpenIdRelyingPartyWebForms/.gitignore
deleted file mode 100644
index b086a60..0000000
--- a/samples/OpenIdRelyingPartyWebForms/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-Bin
-obj
-*.user
-*.log
-StyleCop.Cache
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
deleted file mode 100644
index 44b237d..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
+++ /dev/null
@@ -1,139 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="CustomStore.cs" company="Outercurve Foundation">
-// Copyright (c) Outercurve Foundation. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms.Code {
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Globalization;
- using System.Linq;
- using DotNetOpenAuth;
- using DotNetOpenAuth.Configuration;
- using DotNetOpenAuth.Messaging.Bindings;
- using DotNetOpenAuth.OpenId;
-
- /// <summary>
- /// This custom store serializes all elements to demonstrate peristent and/or shared storage.
- /// This is common in a web farm, for example.
- /// </summary>
- /// <remarks>
- /// This doesn't actually serialize anything to a persistent store, so restarting the web server
- /// will still clear everything this store is supposed to remember.
- /// But we "persist" all associations and nonces into a DataTable to demonstrate
- /// that using a database is possible.
- /// </remarks>
- public class CustomStore : ICryptoKeyAndNonceStore {
- private static CustomStoreDataSet dataSet = new CustomStoreDataSet();
-
- #region INonceStore Members
-
- /// <summary>
- /// Stores a given nonce and timestamp.
- /// </summary>
- /// <param name="context">The context, or namespace, within which the
- /// <paramref name="nonce"/> must be unique.
- /// The context SHOULD be treated as case-sensitive.
- /// The value will never be <c>null</c> but may be the empty string.</param>
- /// <param name="nonce">A series of random characters.</param>
- /// <param name="timestampUtc">The timestamp that together with the nonce string make it unique.
- /// The timestamp may also be used by the data store to clear out old nonces.</param>
- /// <returns>
- /// True if the nonce+timestamp (combination) was not previously in the database.
- /// False if the nonce was stored previously with the same timestamp.
- /// </returns>
- /// <remarks>
- /// The nonce must be stored for no less than the maximum time window a message may
- /// be processed within before being discarded as an expired message.
- /// If the binding element is applicable to your channel, this expiration window
- /// is retrieved or set using the
- /// <see cref="StandardExpirationBindingElement.MaximumMessageAge"/> property.
- /// </remarks>
- public bool StoreNonce(string context, string nonce, DateTime timestampUtc) {
- // IMPORTANT: If actually persisting to a database that can be reached from
- // different servers/instances of this class at once, it is vitally important
- // to protect against race condition attacks by one or more of these:
- // 1) setting a UNIQUE constraint on the nonce CODE in the SQL table
- // 2) Using a transaction with repeatable reads to guarantee that a check
- // that verified a nonce did not exist will prevent that nonce from being
- // added by another process while this process is adding it.
- // And then you'll want to catch the exception that the SQL database can throw
- // at you in the result of a race condition somewhere in your web site UI code
- // and display some message to have the user try to log in again, and possibly
- // warn them about a replay attack.
- lock (this) {
- if (dataSet.Nonce.FindByIssuedUtcCodeContext(timestampUtc, nonce, context) != null) {
- return false;
- }
-
- TimeSpan maxMessageAge = DotNetOpenAuthSection.Messaging.MaximumMessageLifetime;
- dataSet.Nonce.AddNonceRow(context, nonce, timestampUtc, timestampUtc + maxMessageAge);
- return true;
- }
- }
-
- public void ClearExpiredNonces() {
- this.removeExpiredRows(dataSet.Nonce, dataSet.Nonce.ExpiresUtcColumn.ColumnName);
- }
-
- #endregion
-
- #region ICryptoKeyStore Members
-
- public CryptoKey GetKey(string bucket, string handle) {
- var assocRow = dataSet.CryptoKey.FindByBucketHandle(bucket, handle);
- return assocRow == null ? null : new CryptoKey(assocRow.Secret, assocRow.ExpiresUtc);
- }
-
- public IEnumerable<KeyValuePair<string, CryptoKey>> GetKeys(string bucket) {
- // properly escape the URL to prevent injection attacks.
- string value = bucket.Replace("'", "''");
- string filter = string.Format(
- CultureInfo.InvariantCulture,
- "{0} = '{1}'",
- dataSet.CryptoKey.BucketColumn.ColumnName,
- value);
- string sort = dataSet.CryptoKey.ExpiresUtcColumn.ColumnName + " DESC";
- DataView view = new DataView(dataSet.CryptoKey, filter, sort, DataViewRowState.CurrentRows);
- if (view.Count == 0) {
- yield break;
- }
-
- foreach (CustomStoreDataSet.CryptoKeyRow row in view.Cast<DataRowView>().Select(rv => rv.Row)) {
- yield return new KeyValuePair<string, CryptoKey>(row.Handle, new CryptoKey(row.Secret, row.ExpiresUtc));
- }
- }
-
- public void StoreKey(string bucket, string handle, CryptoKey key) {
- var cryptoKeyRow = dataSet.CryptoKey.NewCryptoKeyRow();
- cryptoKeyRow.Bucket = bucket;
- cryptoKeyRow.Handle = handle;
- cryptoKeyRow.ExpiresUtc = key.ExpiresUtc;
- cryptoKeyRow.Secret = key.Key;
- dataSet.CryptoKey.AddCryptoKeyRow(cryptoKeyRow);
- }
-
- public void RemoveKey(string bucket, string handle) {
- var row = dataSet.CryptoKey.FindByBucketHandle(bucket, handle);
- if (row != null) {
- dataSet.CryptoKey.RemoveCryptoKeyRow(row);
- }
- }
-
- #endregion
-
- internal void ClearExpiredSecrets() {
- this.removeExpiredRows(dataSet.CryptoKey, dataSet.CryptoKey.ExpiresUtcColumn.ColumnName);
- }
-
- private void removeExpiredRows(DataTable table, string expiredColumnName) {
- string filter = string.Format(CultureInfo.InvariantCulture, "{0} < #{1}#", expiredColumnName, DateTime.UtcNow);
- DataView view = new DataView(table, filter, null, DataViewRowState.CurrentRows);
- for (int i = view.Count - 1; i >= 0; i--) {
- view.Delete(i);
- }
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.Designer.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.Designer.cs
deleted file mode 100644
index beacfc4..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.Designer.cs
+++ /dev/null
@@ -1,976 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.3053
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-#pragma warning disable 1591
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- /// <summary>
- ///Represents a strongly typed in-memory cache of data.
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
- [global::System.Xml.Serialization.XmlRootAttribute("CustomStoreDataSet")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
- public partial class CustomStoreDataSet : global::System.Data.DataSet {
-
- private AssociationDataTable tableAssociation;
-
- private NonceDataTable tableNonce;
-
- private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CustomStoreDataSet() {
- this.BeginInit();
- this.InitClass();
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- base.Tables.CollectionChanged += schemaChangedHandler;
- base.Relations.CollectionChanged += schemaChangedHandler;
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected CustomStoreDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context, false) {
- if ((this.IsBinarySerialized(info, context) == true)) {
- this.InitVars(false);
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler1;
- this.Relations.CollectionChanged += schemaChangedHandler1;
- return;
- }
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
- if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
- global::System.Data.DataSet ds = new global::System.Data.DataSet();
- ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- if ((ds.Tables["Association"] != null)) {
- base.Tables.Add(new AssociationDataTable(ds.Tables["Association"]));
- }
- if ((ds.Tables["Nonce"] != null)) {
- base.Tables.Add(new NonceDataTable(ds.Tables["Nonce"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- }
- this.GetSerializationData(info, context);
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- base.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AssociationDataTable Association {
- get {
- return this.tableAssociation;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public NonceDataTable Nonce {
- get {
- return this.tableNonce;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.BrowsableAttribute(true)]
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
- public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
- get {
- return this._schemaSerializationMode;
- }
- set {
- this._schemaSerializationMode = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
- public new global::System.Data.DataTableCollection Tables {
- get {
- return base.Tables;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
- public new global::System.Data.DataRelationCollection Relations {
- get {
- return base.Relations;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void InitializeDerivedDataSet() {
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataSet Clone() {
- CustomStoreDataSet cln = ((CustomStoreDataSet)(base.Clone()));
- cln.InitVars();
- cln.SchemaSerializationMode = this.SchemaSerializationMode;
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override bool ShouldSerializeTables() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override bool ShouldSerializeRelations() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
- if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
- this.Reset();
- global::System.Data.DataSet ds = new global::System.Data.DataSet();
- ds.ReadXml(reader);
- if ((ds.Tables["Association"] != null)) {
- base.Tables.Add(new AssociationDataTable(ds.Tables["Association"]));
- }
- if ((ds.Tables["Nonce"] != null)) {
- base.Tables.Add(new NonceDataTable(ds.Tables["Nonce"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.ReadXml(reader);
- this.InitVars();
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
- global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
- this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
- stream.Position = 0;
- return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.InitVars(true);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars(bool initTable) {
- this.tableAssociation = ((AssociationDataTable)(base.Tables["Association"]));
- if ((initTable == true)) {
- if ((this.tableAssociation != null)) {
- this.tableAssociation.InitVars();
- }
- }
- this.tableNonce = ((NonceDataTable)(base.Tables["Nonce"]));
- if ((initTable == true)) {
- if ((this.tableNonce != null)) {
- this.tableNonce.InitVars();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.DataSetName = "CustomStoreDataSet";
- this.Prefix = "";
- this.Namespace = "http://tempuri.org/CustomStoreDataSet.xsd";
- this.EnforceConstraints = true;
- this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableAssociation = new AssociationDataTable();
- base.Tables.Add(this.tableAssociation);
- this.tableNonce = new NonceDataTable();
- base.Tables.Add(this.tableNonce);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAssociation() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeNonce() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- CustomStoreDataSet ds = new CustomStoreDataSet();
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
- any.Namespace = ds.Namespace;
- sequence.Items.Add(any);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
-
- public delegate void AssociationRowChangeEventHandler(object sender, AssociationRowChangeEvent e);
-
- public delegate void NonceRowChangeEventHandler(object sender, NonceRowChangeEvent e);
-
- /// <summary>
- ///Represents the strongly named DataTable class.
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AssociationDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
-
- private global::System.Data.DataColumn columnDistinguishingFactor;
-
- private global::System.Data.DataColumn columnHandle;
-
- private global::System.Data.DataColumn columnExpires;
-
- private global::System.Data.DataColumn columnPrivateData;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationDataTable() {
- this.TableName = "Association";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AssociationDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AssociationDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DistinguishingFactorColumn {
- get {
- return this.columnDistinguishingFactor;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn HandleColumn {
- get {
- return this.columnHandle;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ExpiresColumn {
- get {
- return this.columnExpires;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn PrivateDataColumn {
- get {
- return this.columnPrivateData;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationRow this[int index] {
- get {
- return ((AssociationRow)(this.Rows[index]));
- }
- }
-
- public event AssociationRowChangeEventHandler AssociationRowChanging;
-
- public event AssociationRowChangeEventHandler AssociationRowChanged;
-
- public event AssociationRowChangeEventHandler AssociationRowDeleting;
-
- public event AssociationRowChangeEventHandler AssociationRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAssociationRow(AssociationRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationRow AddAssociationRow(string DistinguishingFactor, string Handle, System.DateTime Expires, byte[] PrivateData) {
- AssociationRow rowAssociationRow = ((AssociationRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- DistinguishingFactor,
- Handle,
- Expires,
- PrivateData};
- rowAssociationRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAssociationRow);
- return rowAssociationRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationRow FindByDistinguishingFactorHandle(string DistinguishingFactor, string Handle) {
- return ((AssociationRow)(this.Rows.Find(new object[] {
- DistinguishingFactor,
- Handle})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public virtual global::System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AssociationDataTable cln = ((AssociationDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AssociationDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnDistinguishingFactor = base.Columns["DistinguishingFactor"];
- this.columnHandle = base.Columns["Handle"];
- this.columnExpires = base.Columns["Expires"];
- this.columnPrivateData = base.Columns["PrivateData"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnDistinguishingFactor = new global::System.Data.DataColumn("DistinguishingFactor", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDistinguishingFactor);
- this.columnHandle = new global::System.Data.DataColumn("Handle", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnHandle);
- this.columnExpires = new global::System.Data.DataColumn("Expires", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnExpires);
- this.columnPrivateData = new global::System.Data.DataColumn("PrivateData", typeof(byte[]), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnPrivateData);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("PrimaryKey", new global::System.Data.DataColumn[] {
- this.columnDistinguishingFactor,
- this.columnHandle}, true));
- this.columnDistinguishingFactor.AllowDBNull = false;
- this.columnHandle.AllowDBNull = false;
- this.columnExpires.AllowDBNull = false;
- this.columnPrivateData.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationRow NewAssociationRow() {
- return ((AssociationRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AssociationRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AssociationRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AssociationRowChanged != null)) {
- this.AssociationRowChanged(this, new AssociationRowChangeEvent(((AssociationRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AssociationRowChanging != null)) {
- this.AssociationRowChanging(this, new AssociationRowChangeEvent(((AssociationRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AssociationRowDeleted != null)) {
- this.AssociationRowDeleted(this, new AssociationRowChangeEvent(((AssociationRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AssociationRowDeleting != null)) {
- this.AssociationRowDeleting(this, new AssociationRowChangeEvent(((AssociationRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAssociationRow(AssociationRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- CustomStoreDataSet ds = new CustomStoreDataSet();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "AssociationDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
- /// <summary>
- ///Represents the strongly named DataTable class.
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class NonceDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
-
- private global::System.Data.DataColumn columnCode;
-
- private global::System.Data.DataColumn columnExpires;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceDataTable() {
- this.TableName = "Nonce";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal NonceDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected NonceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodeColumn {
- get {
- return this.columnCode;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn ExpiresColumn {
- get {
- return this.columnExpires;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceRow this[int index] {
- get {
- return ((NonceRow)(this.Rows[index]));
- }
- }
-
- public event NonceRowChangeEventHandler NonceRowChanging;
-
- public event NonceRowChangeEventHandler NonceRowChanged;
-
- public event NonceRowChangeEventHandler NonceRowDeleting;
-
- public event NonceRowChangeEventHandler NonceRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddNonceRow(NonceRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceRow AddNonceRow(string Code, System.DateTime Expires) {
- NonceRow rowNonceRow = ((NonceRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- Code,
- Expires};
- rowNonceRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowNonceRow);
- return rowNonceRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceRow FindByCode(string Code) {
- return ((NonceRow)(this.Rows.Find(new object[] {
- Code})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public virtual global::System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- NonceDataTable cln = ((NonceDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new NonceDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCode = base.Columns["Code"];
- this.columnExpires = base.Columns["Expires"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCode);
- this.columnExpires = new global::System.Data.DataColumn("Expires", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnExpires);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("PrimaryKey", new global::System.Data.DataColumn[] {
- this.columnCode}, true));
- this.columnCode.AllowDBNull = false;
- this.columnCode.Unique = true;
- this.columnExpires.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceRow NewNonceRow() {
- return ((NonceRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new NonceRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(NonceRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.NonceRowChanged != null)) {
- this.NonceRowChanged(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.NonceRowChanging != null)) {
- this.NonceRowChanging(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.NonceRowDeleted != null)) {
- this.NonceRowDeleted(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.NonceRowDeleting != null)) {
- this.NonceRowDeleting(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveNonceRow(NonceRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- CustomStoreDataSet ds = new CustomStoreDataSet();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "NonceDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
- /// <summary>
- ///Represents strongly named DataRow class.
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AssociationRow : global::System.Data.DataRow {
-
- private AssociationDataTable tableAssociation;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AssociationRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAssociation = ((AssociationDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DistinguishingFactor {
- get {
- return ((string)(this[this.tableAssociation.DistinguishingFactorColumn]));
- }
- set {
- this[this.tableAssociation.DistinguishingFactorColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Handle {
- get {
- return ((string)(this[this.tableAssociation.HandleColumn]));
- }
- set {
- this[this.tableAssociation.HandleColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime Expires {
- get {
- return ((global::System.DateTime)(this[this.tableAssociation.ExpiresColumn]));
- }
- set {
- this[this.tableAssociation.ExpiresColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public byte[] PrivateData {
- get {
- return ((byte[])(this[this.tableAssociation.PrivateDataColumn]));
- }
- set {
- this[this.tableAssociation.PrivateDataColumn] = value;
- }
- }
- }
-
- /// <summary>
- ///Represents strongly named DataRow class.
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class NonceRow : global::System.Data.DataRow {
-
- private NonceDataTable tableNonce;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal NonceRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableNonce = ((NonceDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string Code {
- get {
- return ((string)(this[this.tableNonce.CodeColumn]));
- }
- set {
- this[this.tableNonce.CodeColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.DateTime Expires {
- get {
- return ((global::System.DateTime)(this[this.tableNonce.ExpiresColumn]));
- }
- set {
- this[this.tableNonce.ExpiresColumn] = value;
- }
- }
- }
-
- /// <summary>
- ///Row event argument class
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AssociationRowChangeEvent : global::System.EventArgs {
-
- private AssociationRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationRowChangeEvent(AssociationRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AssociationRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
- /// <summary>
- ///Row event argument class
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class NonceRowChangeEvent : global::System.EventArgs {
-
- private NonceRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceRowChangeEvent(NonceRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public NonceRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- }
-}
-
-#pragma warning restore 1591 \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.cs
deleted file mode 100644
index abc77e9..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-namespace OpenIdRelyingPartyWebForms.Code {
- public partial class CustomStoreDataSet {
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsc b/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsc
deleted file mode 100644
index 05b0199..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsc
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--<autogenerated>
- This code was generated by a tool.
- Changes to this file may cause incorrect behavior and will be lost if
- the code is regenerated.
-</autogenerated>-->
-<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
- <TableUISettings />
-</DataSetUISetting> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsd b/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsd
deleted file mode 100644
index f3270f6..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xsd
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xs:schema id="CustomStoreDataSet" targetNamespace="http://tempuri.org/CustomStoreDataSet.xsd" xmlns:mstns="http://tempuri.org/CustomStoreDataSet.xsd" xmlns="http://tempuri.org/CustomStoreDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
- <xs:annotation>
- <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
- <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
- <Connections />
- <Tables />
- <Sources />
- </DataSource>
- </xs:appinfo>
- </xs:annotation>
- <xs:element name="CustomStoreDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="CustomStoreDataSet" msprop:Generator_UserDSName="CustomStoreDataSet">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="CryptoKey" msprop:Generator_UserTableName="CryptoKey" msprop:Generator_RowEvArgName="CryptoKeyRowChangeEvent" msprop:Generator_TableVarName="tableCryptoKey" msprop:Generator_TablePropName="CryptoKey" msprop:Generator_RowDeletingName="CryptoKeyRowDeleting" msprop:Generator_RowChangingName="CryptoKeyRowChanging" msprop:Generator_RowDeletedName="CryptoKeyRowDeleted" msprop:Generator_TableClassName="CryptoKeyDataTable" msprop:Generator_RowChangedName="CryptoKeyRowChanged" msprop:Generator_RowEvHandlerName="CryptoKeyRowChangeEventHandler" msprop:Generator_RowClassName="CryptoKeyRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Bucket" msprop:Generator_ColumnVarNameInTable="columnBucket" msprop:Generator_ColumnPropNameInRow="Bucket" msprop:Generator_ColumnPropNameInTable="BucketColumn" msprop:Generator_UserColumnName="Bucket" type="xs:string" />
- <xs:element name="Handle" msprop:Generator_ColumnVarNameInTable="columnHandle" msprop:Generator_ColumnPropNameInRow="Handle" msprop:Generator_ColumnPropNameInTable="HandleColumn" msprop:Generator_UserColumnName="Handle" type="xs:string" />
- <xs:element name="ExpiresUtc" msdata:DateTimeMode="Utc" msprop:Generator_ColumnVarNameInTable="columnExpiresUtc" msprop:Generator_ColumnPropNameInRow="ExpiresUtc" msprop:Generator_ColumnPropNameInTable="ExpiresUtcColumn" msprop:Generator_UserColumnName="ExpiresUtc" type="xs:dateTime" />
- <xs:element name="Secret" msprop:Generator_ColumnVarNameInTable="columnSecret" msprop:Generator_ColumnPropNameInRow="Secret" msprop:Generator_ColumnPropNameInTable="SecretColumn" msprop:Generator_UserColumnName="Secret" type="xs:base64Binary" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Nonce" msprop:Generator_UserTableName="Nonce" msprop:Generator_RowEvArgName="NonceRowChangeEvent" msprop:Generator_TableVarName="tableNonce" msprop:Generator_TablePropName="Nonce" msprop:Generator_RowDeletingName="NonceRowDeleting" msprop:Generator_RowChangingName="NonceRowChanging" msprop:Generator_RowDeletedName="NonceRowDeleted" msprop:Generator_TableClassName="NonceDataTable" msprop:Generator_RowChangedName="NonceRowChanged" msprop:Generator_RowEvHandlerName="NonceRowChangeEventHandler" msprop:Generator_RowClassName="NonceRow">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="Context" msprop:Generator_ColumnVarNameInTable="columnContext" msprop:Generator_ColumnPropNameInRow="Context" msprop:Generator_ColumnPropNameInTable="ContextColumn" msprop:Generator_UserColumnName="Context" type="xs:string" />
- <xs:element name="Code" msprop:Generator_ColumnVarNameInTable="columnCode" msprop:Generator_ColumnPropNameInRow="Code" msprop:Generator_ColumnPropNameInTable="CodeColumn" msprop:Generator_UserColumnName="Code" type="xs:string" />
- <xs:element name="IssuedUtc" msdata:DateTimeMode="Utc" msprop:Generator_ColumnVarNameInTable="columnIssuedUtc" msprop:Generator_ColumnPropNameInRow="IssuedUtc" msprop:Generator_ColumnPropNameInTable="IssuedUtcColumn" msprop:Generator_UserColumnName="IssuedUtc" type="xs:dateTime" />
- <xs:element name="ExpiresUtc" msdata:DateTimeMode="Utc" msprop:Generator_ColumnVarNameInTable="columnExpiresUtc" msprop:Generator_ColumnPropNameInRow="ExpiresUtc" msprop:Generator_ColumnPropNameInTable="ExpiresUtcColumn" msprop:Generator_UserColumnName="ExpiresUtc" type="xs:dateTime" />
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:choice>
- </xs:complexType>
- <xs:unique name="PrimaryKey" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:CryptoKey" />
- <xs:field xpath="mstns:Bucket" />
- <xs:field xpath="mstns:Handle" />
- </xs:unique>
- <xs:unique name="Constraint1" msdata:PrimaryKey="true">
- <xs:selector xpath=".//mstns:Nonce" />
- <xs:field xpath="mstns:IssuedUtc" />
- <xs:field xpath="mstns:Code" />
- <xs:field xpath="mstns:Context" />
- </xs:unique>
- </xs:element>
-</xs:schema> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xss b/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xss
deleted file mode 100644
index 631148e..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet.xss
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--<autogenerated>
- This code was generated by a tool to store the dataset designer's layout information.
- Changes to this file may cause incorrect behavior and will be lost if
- the code is regenerated.
-</autogenerated>-->
-<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
- <Shapes>
- <Shape ID="DesignTable:CryptoKey" ZOrder="2" X="349" Y="83" Height="105" Width="154" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="101" />
- <Shape ID="DesignTable:Nonce" ZOrder="1" X="604" Y="86" Height="125" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
- </Shapes>
- <Connectors />
-</DiagramLayout> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet1.Designer.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet1.Designer.cs
deleted file mode 100644
index 3875aa5..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStoreDataSet1.Designer.cs
+++ /dev/null
@@ -1,1111 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.17614
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-#pragma warning disable 1591
-
-namespace OpenIdRelyingPartyWebForms.Code {
-
-
- /// <summary>
- ///Represents a strongly typed in-memory cache of data.
- ///</summary>
- [global::System.Serializable()]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
- [global::System.Xml.Serialization.XmlRootAttribute("CustomStoreDataSet")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
- public partial class CustomStoreDataSet : global::System.Data.DataSet {
-
- private CryptoKeyDataTable tableCryptoKey;
-
- private NonceDataTable tableNonce;
-
- private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CustomStoreDataSet() {
- this.BeginInit();
- this.InitClass();
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- base.Tables.CollectionChanged += schemaChangedHandler;
- base.Relations.CollectionChanged += schemaChangedHandler;
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected CustomStoreDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context, false) {
- if ((this.IsBinarySerialized(info, context) == true)) {
- this.InitVars(false);
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler1;
- this.Relations.CollectionChanged += schemaChangedHandler1;
- return;
- }
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
- if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
- global::System.Data.DataSet ds = new global::System.Data.DataSet();
- ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- if ((ds.Tables["CryptoKey"] != null)) {
- base.Tables.Add(new CryptoKeyDataTable(ds.Tables["CryptoKey"]));
- }
- if ((ds.Tables["Nonce"] != null)) {
- base.Tables.Add(new NonceDataTable(ds.Tables["Nonce"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
- }
- this.GetSerializationData(info, context);
- global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- base.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public CryptoKeyDataTable CryptoKey {
- get {
- return this.tableCryptoKey;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public NonceDataTable Nonce {
- get {
- return this.tableNonce;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.BrowsableAttribute(true)]
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
- public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
- get {
- return this._schemaSerializationMode;
- }
- set {
- this._schemaSerializationMode = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
- public new global::System.Data.DataTableCollection Tables {
- get {
- return base.Tables;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
- public new global::System.Data.DataRelationCollection Relations {
- get {
- return base.Relations;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void InitializeDerivedDataSet() {
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public override global::System.Data.DataSet Clone() {
- CustomStoreDataSet cln = ((CustomStoreDataSet)(base.Clone()));
- cln.InitVars();
- cln.SchemaSerializationMode = this.SchemaSerializationMode;
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override bool ShouldSerializeTables() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override bool ShouldSerializeRelations() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
- if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
- this.Reset();
- global::System.Data.DataSet ds = new global::System.Data.DataSet();
- ds.ReadXml(reader);
- if ((ds.Tables["CryptoKey"] != null)) {
- base.Tables.Add(new CryptoKeyDataTable(ds.Tables["CryptoKey"]));
- }
- if ((ds.Tables["Nonce"] != null)) {
- base.Tables.Add(new NonceDataTable(ds.Tables["Nonce"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.ReadXml(reader);
- this.InitVars();
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
- global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
- this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
- stream.Position = 0;
- return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal void InitVars() {
- this.InitVars(true);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal void InitVars(bool initTable) {
- this.tableCryptoKey = ((CryptoKeyDataTable)(base.Tables["CryptoKey"]));
- if ((initTable == true)) {
- if ((this.tableCryptoKey != null)) {
- this.tableCryptoKey.InitVars();
- }
- }
- this.tableNonce = ((NonceDataTable)(base.Tables["Nonce"]));
- if ((initTable == true)) {
- if ((this.tableNonce != null)) {
- this.tableNonce.InitVars();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- private void InitClass() {
- this.DataSetName = "CustomStoreDataSet";
- this.Prefix = "";
- this.Namespace = "http://tempuri.org/CustomStoreDataSet.xsd";
- this.EnforceConstraints = true;
- this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableCryptoKey = new CryptoKeyDataTable();
- base.Tables.Add(this.tableCryptoKey);
- this.tableNonce = new NonceDataTable();
- base.Tables.Add(this.tableNonce);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- private bool ShouldSerializeCryptoKey() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- private bool ShouldSerializeNonce() {
- return false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- CustomStoreDataSet ds = new CustomStoreDataSet();
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
- any.Namespace = ds.Namespace;
- sequence.Items.Add(any);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public delegate void CryptoKeyRowChangeEventHandler(object sender, CryptoKeyRowChangeEvent e);
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public delegate void NonceRowChangeEventHandler(object sender, NonceRowChangeEvent e);
-
- /// <summary>
- ///Represents the strongly named DataTable class.
- ///</summary>
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class CryptoKeyDataTable : global::System.Data.TypedTableBase<CryptoKeyRow> {
-
- private global::System.Data.DataColumn columnBucket;
-
- private global::System.Data.DataColumn columnHandle;
-
- private global::System.Data.DataColumn columnExpiresUtc;
-
- private global::System.Data.DataColumn columnSecret;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyDataTable() {
- this.TableName = "CryptoKey";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal CryptoKeyDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected CryptoKeyDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn BucketColumn {
- get {
- return this.columnBucket;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn HandleColumn {
- get {
- return this.columnHandle;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn ExpiresUtcColumn {
- get {
- return this.columnExpiresUtc;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn SecretColumn {
- get {
- return this.columnSecret;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyRow this[int index] {
- get {
- return ((CryptoKeyRow)(this.Rows[index]));
- }
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event CryptoKeyRowChangeEventHandler CryptoKeyRowChanging;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event CryptoKeyRowChangeEventHandler CryptoKeyRowChanged;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event CryptoKeyRowChangeEventHandler CryptoKeyRowDeleting;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event CryptoKeyRowChangeEventHandler CryptoKeyRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void AddCryptoKeyRow(CryptoKeyRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyRow AddCryptoKeyRow(string Bucket, string Handle, System.DateTime ExpiresUtc, byte[] Secret) {
- CryptoKeyRow rowCryptoKeyRow = ((CryptoKeyRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- Bucket,
- Handle,
- ExpiresUtc,
- Secret};
- rowCryptoKeyRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowCryptoKeyRow);
- return rowCryptoKeyRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyRow FindByBucketHandle(string Bucket, string Handle) {
- return ((CryptoKeyRow)(this.Rows.Find(new object[] {
- Bucket,
- Handle})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public override global::System.Data.DataTable Clone() {
- CryptoKeyDataTable cln = ((CryptoKeyDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Data.DataTable CreateInstance() {
- return new CryptoKeyDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal void InitVars() {
- this.columnBucket = base.Columns["Bucket"];
- this.columnHandle = base.Columns["Handle"];
- this.columnExpiresUtc = base.Columns["ExpiresUtc"];
- this.columnSecret = base.Columns["Secret"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- private void InitClass() {
- this.columnBucket = new global::System.Data.DataColumn("Bucket", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnBucket);
- this.columnHandle = new global::System.Data.DataColumn("Handle", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnHandle);
- this.columnExpiresUtc = new global::System.Data.DataColumn("ExpiresUtc", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnExpiresUtc);
- this.columnSecret = new global::System.Data.DataColumn("Secret", typeof(byte[]), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnSecret);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("PrimaryKey", new global::System.Data.DataColumn[] {
- this.columnBucket,
- this.columnHandle}, true));
- this.columnBucket.AllowDBNull = false;
- this.columnHandle.AllowDBNull = false;
- this.columnExpiresUtc.AllowDBNull = false;
- this.columnExpiresUtc.DateTimeMode = global::System.Data.DataSetDateTime.Utc;
- this.columnSecret.AllowDBNull = false;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyRow NewCryptoKeyRow() {
- return ((CryptoKeyRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new CryptoKeyRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Type GetRowType() {
- return typeof(CryptoKeyRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.CryptoKeyRowChanged != null)) {
- this.CryptoKeyRowChanged(this, new CryptoKeyRowChangeEvent(((CryptoKeyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.CryptoKeyRowChanging != null)) {
- this.CryptoKeyRowChanging(this, new CryptoKeyRowChangeEvent(((CryptoKeyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.CryptoKeyRowDeleted != null)) {
- this.CryptoKeyRowDeleted(this, new CryptoKeyRowChangeEvent(((CryptoKeyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.CryptoKeyRowDeleting != null)) {
- this.CryptoKeyRowDeleting(this, new CryptoKeyRowChangeEvent(((CryptoKeyRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void RemoveCryptoKeyRow(CryptoKeyRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- CustomStoreDataSet ds = new CustomStoreDataSet();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "CryptoKeyDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
- /// <summary>
- ///Represents the strongly named DataTable class.
- ///</summary>
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class NonceDataTable : global::System.Data.TypedTableBase<NonceRow> {
-
- private global::System.Data.DataColumn columnContext;
-
- private global::System.Data.DataColumn columnCode;
-
- private global::System.Data.DataColumn columnIssuedUtc;
-
- private global::System.Data.DataColumn columnExpiresUtc;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceDataTable() {
- this.TableName = "Nonce";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal NonceDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected NonceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn ContextColumn {
- get {
- return this.columnContext;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn CodeColumn {
- get {
- return this.columnCode;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn IssuedUtcColumn {
- get {
- return this.columnIssuedUtc;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn ExpiresUtcColumn {
- get {
- return this.columnExpiresUtc;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceRow this[int index] {
- get {
- return ((NonceRow)(this.Rows[index]));
- }
- }
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event NonceRowChangeEventHandler NonceRowChanging;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event NonceRowChangeEventHandler NonceRowChanged;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event NonceRowChangeEventHandler NonceRowDeleting;
-
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public event NonceRowChangeEventHandler NonceRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void AddNonceRow(NonceRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceRow AddNonceRow(string Context, string Code, System.DateTime IssuedUtc, System.DateTime ExpiresUtc) {
- NonceRow rowNonceRow = ((NonceRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- Context,
- Code,
- IssuedUtc,
- ExpiresUtc};
- rowNonceRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowNonceRow);
- return rowNonceRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceRow FindByIssuedUtcCodeContext(System.DateTime IssuedUtc, string Code, string Context) {
- return ((NonceRow)(this.Rows.Find(new object[] {
- IssuedUtc,
- Code,
- Context})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public override global::System.Data.DataTable Clone() {
- NonceDataTable cln = ((NonceDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Data.DataTable CreateInstance() {
- return new NonceDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal void InitVars() {
- this.columnContext = base.Columns["Context"];
- this.columnCode = base.Columns["Code"];
- this.columnIssuedUtc = base.Columns["IssuedUtc"];
- this.columnExpiresUtc = base.Columns["ExpiresUtc"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- private void InitClass() {
- this.columnContext = new global::System.Data.DataColumn("Context", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnContext);
- this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCode);
- this.columnIssuedUtc = new global::System.Data.DataColumn("IssuedUtc", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnIssuedUtc);
- this.columnExpiresUtc = new global::System.Data.DataColumn("ExpiresUtc", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnExpiresUtc);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnIssuedUtc,
- this.columnCode,
- this.columnContext}, true));
- this.columnContext.AllowDBNull = false;
- this.columnCode.AllowDBNull = false;
- this.columnIssuedUtc.AllowDBNull = false;
- this.columnIssuedUtc.DateTimeMode = global::System.Data.DataSetDateTime.Utc;
- this.columnExpiresUtc.AllowDBNull = false;
- this.columnExpiresUtc.DateTimeMode = global::System.Data.DataSetDateTime.Utc;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceRow NewNonceRow() {
- return ((NonceRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new NonceRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override global::System.Type GetRowType() {
- return typeof(NonceRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.NonceRowChanged != null)) {
- this.NonceRowChanged(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.NonceRowChanging != null)) {
- this.NonceRowChanging(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.NonceRowDeleted != null)) {
- this.NonceRowDeleted(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.NonceRowDeleting != null)) {
- this.NonceRowDeleting(this, new NonceRowChangeEvent(((NonceRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void RemoveNonceRow(NonceRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- CustomStoreDataSet ds = new CustomStoreDataSet();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "NonceDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
- /// <summary>
- ///Represents strongly named DataRow class.
- ///</summary>
- public partial class CryptoKeyRow : global::System.Data.DataRow {
-
- private CryptoKeyDataTable tableCryptoKey;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal CryptoKeyRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableCryptoKey = ((CryptoKeyDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string Bucket {
- get {
- return ((string)(this[this.tableCryptoKey.BucketColumn]));
- }
- set {
- this[this.tableCryptoKey.BucketColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string Handle {
- get {
- return ((string)(this[this.tableCryptoKey.HandleColumn]));
- }
- set {
- this[this.tableCryptoKey.HandleColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public System.DateTime ExpiresUtc {
- get {
- return ((global::System.DateTime)(this[this.tableCryptoKey.ExpiresUtcColumn]));
- }
- set {
- this[this.tableCryptoKey.ExpiresUtcColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public byte[] Secret {
- get {
- return ((byte[])(this[this.tableCryptoKey.SecretColumn]));
- }
- set {
- this[this.tableCryptoKey.SecretColumn] = value;
- }
- }
- }
-
- /// <summary>
- ///Represents strongly named DataRow class.
- ///</summary>
- public partial class NonceRow : global::System.Data.DataRow {
-
- private NonceDataTable tableNonce;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- internal NonceRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableNonce = ((NonceDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string Context {
- get {
- return ((string)(this[this.tableNonce.ContextColumn]));
- }
- set {
- this[this.tableNonce.ContextColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string Code {
- get {
- return ((string)(this[this.tableNonce.CodeColumn]));
- }
- set {
- this[this.tableNonce.CodeColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public System.DateTime IssuedUtc {
- get {
- return ((global::System.DateTime)(this[this.tableNonce.IssuedUtcColumn]));
- }
- set {
- this[this.tableNonce.IssuedUtcColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public System.DateTime ExpiresUtc {
- get {
- return ((global::System.DateTime)(this[this.tableNonce.ExpiresUtcColumn]));
- }
- set {
- this[this.tableNonce.ExpiresUtcColumn] = value;
- }
- }
- }
-
- /// <summary>
- ///Row event argument class
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public class CryptoKeyRowChangeEvent : global::System.EventArgs {
-
- private CryptoKeyRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyRowChangeEvent(CryptoKeyRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CryptoKeyRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
- /// <summary>
- ///Row event argument class
- ///</summary>
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public class NonceRowChangeEvent : global::System.EventArgs {
-
- private NonceRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceRowChangeEvent(NonceRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public NonceRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- }
-}
-
-#pragma warning restore 1591 \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/State.cs b/samples/OpenIdRelyingPartyWebForms/Code/State.cs
deleted file mode 100644
index c8cef80..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/State.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System.Web;
- using DotNetOpenAuth.OAuth;
- using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
- using DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
-
- /// <summary>
- /// Strong-typed bag of session state.
- /// </summary>
- public class State {
- public static ClaimsResponse ProfileFields {
- get { return HttpContext.Current.Session["ProfileFields"] as ClaimsResponse; }
- set { HttpContext.Current.Session["ProfileFields"] = value; }
- }
-
- public static FetchResponse FetchResponse {
- get { return HttpContext.Current.Session["FetchResponse"] as FetchResponse; }
- set { HttpContext.Current.Session["FetchResponse"] = value; }
- }
-
- public static string FriendlyLoginName {
- get { return HttpContext.Current.Session["FriendlyUsername"] as string; }
- set { HttpContext.Current.Session["FriendlyUsername"] = value; }
- }
-
- public static PolicyResponse PapePolicies {
- get { return HttpContext.Current.Session["PapePolicies"] as PolicyResponse; }
- set { HttpContext.Current.Session["PapePolicies"] = value; }
- }
-
- public static AccessToken GoogleAccessToken {
- get { return (AccessToken)(HttpContext.Current.Session["GoogleAccessToken"] ?? new AccessToken()); }
- set { HttpContext.Current.Session["GoogleAccessToken"] = value; }
- }
-
- public static void Clear() {
- ProfileFields = null;
- FetchResponse = null;
- FriendlyLoginName = null;
- PapePolicies = null;
- GoogleAccessToken = new AccessToken();
- }
- }
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/TracePageAppender.cs b/samples/OpenIdRelyingPartyWebForms/Code/TracePageAppender.cs
deleted file mode 100644
index a03293b..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Code/TracePageAppender.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace OpenIdRelyingPartyWebForms.Code {
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Web;
-
- public class TracePageAppender : log4net.Appender.AppenderSkeleton {
- protected override void Append(log4net.Core.LoggingEvent loggingEvent) {
- StringWriter sw = new StringWriter(Global.LogMessages);
- Layout.Format(sw, loggingEvent);
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/Default.aspx b/samples/OpenIdRelyingPartyWebForms/Default.aspx
deleted file mode 100644
index 99f9885..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Default.aspx
+++ /dev/null
@@ -1,13 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.UI" Namespace="DotNetOpenAuth" TagPrefix="openid" %>
-<asp:Content runat="server" ContentPlaceHolderID="head">
- <openid:XrdsPublisher ID="XrdsPublisher1" runat="server" XrdsUrl="~/xrds.aspx" />
-</asp:Content>
-<asp:Content runat="server" ContentPlaceHolderID="main">
- <h2>Relying Party </h2>
- <p>Visit the
- <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/MembersOnly/Default.aspx"
- Text="Members Only" />
- area. (This will trigger a login demo). </p>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx b/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx
deleted file mode 100644
index 21b6a12..0000000
--- a/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx
+++ /dev/null
@@ -1,16 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetectGoogleSession.aspx.cs"
- Inherits="OpenIdRelyingPartyWebForms.DetectGoogleSession" ValidateRequest="false"
- MasterPageFile="~/Site.Master" Async="true" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.RelyingParty"
- TagPrefix="rp" %>
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.Extensions.SimpleRegistration"
- TagPrefix="sreg" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <asp:Label Text="We've detected that you're logged into Google!" runat="server" Visible="false"
- ID="YouAreLoggedInLabel" />
- <asp:Label Text="We've detected that you're logged into Google because your Google account trusts this site!" runat="server" Visible="false"
- ID="YouTrustUsLabel" />
- <asp:Label Text="We've detected that you're NOT logged into Google!" runat="server" Visible="false"
- ID="YouAreNotLoggedInLabel" />
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.cs b/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.cs
deleted file mode 100644
index 909c4bc..0000000
--- a/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Web;
- using System.Web.UI;
-
- using DotNetOpenAuth.ApplicationBlock.CustomExtensions;
- using DotNetOpenAuth.OpenId;
- using DotNetOpenAuth.OpenId.Extensions.UI;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class DetectGoogleSession : System.Web.UI.Page {
- private const string GoogleOPIdentifier = "https://www.google.com/accounts/o8/id";
-
- private const string UIModeDetectSession = "x-has-session";
-
- protected void Page_Load(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- using (var openid = new OpenIdRelyingParty()) {
- // In order to receive the UIRequest as a response, we must register a custom extension factory.
- openid.ExtensionFactories.Add(new UIRequestAtRelyingPartyFactory());
-
- var response = await openid.GetResponseAsync(new HttpRequestWrapper(Request), Response.ClientDisconnectedToken);
- if (response == null) {
- // Submit an OpenID request which Google must reply to immediately.
- // If the user hasn't established a trust relationship with this site yet,
- // Google will not give us the user identity, but they will tell us whether the user
- // at least has an active login session with them so we know whether to promote the
- // "Log in with Google" button.
- IAuthenticationRequest request =
- await
- openid.CreateRequestAsync(
- "https://www.google.com/accounts/o8/id", new HttpRequestWrapper(Request), Response.ClientDisconnectedToken);
- request.AddExtension(new UIRequest { Mode = UIModeDetectSession });
- request.Mode = AuthenticationRequestMode.Immediate;
- await request.RedirectToProviderAsync(new HttpContextWrapper(this.Context), Response.ClientDisconnectedToken);
- } else {
- if (response.Status == AuthenticationStatus.Authenticated) {
- this.YouTrustUsLabel.Visible = true;
- } else if (response.Status == AuthenticationStatus.SetupRequired) {
- // Google refused to authenticate the user without user interaction.
- // This is either because Google doesn't know who the user is yet,
- // or because the user hasn't indicated to Google to trust this site.
- // Google uniquely offers the RP a tip as to which of the above situations is true.
- // Figure out which it is. In a real app, you might use this value to promote a
- // Google login button on your site if you detect that a Google session exists.
- var ext = response.GetUntrustedExtension<UIRequest>();
- this.YouAreLoggedInLabel.Visible = ext != null && ext.Mode == UIModeDetectSession;
- this.YouAreNotLoggedInLabel.Visible = !this.YouAreLoggedInLabel.Visible;
- }
- }
- }
- }));
- }
- }
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.designer.cs
deleted file mode 100644
index 576c646..0000000
--- a/samples/OpenIdRelyingPartyWebForms/DetectGoogleSession.aspx.designer.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class DetectGoogleSession {
-
- /// <summary>
- /// YouAreLoggedInLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label YouAreLoggedInLabel;
-
- /// <summary>
- /// YouTrustUsLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label YouTrustUsLabel;
-
- /// <summary>
- /// YouAreNotLoggedInLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label YouAreNotLoggedInLabel;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/Global.asax b/samples/OpenIdRelyingPartyWebForms/Global.asax
deleted file mode 100644
index 8be3cd1..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Global.asax
+++ /dev/null
@@ -1 +0,0 @@
-<%@ Application Codebehind="Global.asax.cs" Inherits="OpenIdRelyingPartyWebForms.Global" Language="C#" %>
diff --git a/samples/OpenIdRelyingPartyWebForms/Global.asax.cs b/samples/OpenIdRelyingPartyWebForms/Global.asax.cs
deleted file mode 100644
index 8460d49..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Global.asax.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Collections.Specialized;
- using System.Configuration;
- using System.IO;
- using System.Text;
- using System.Web;
- using DotNetOpenAuth.ApplicationBlock;
- using DotNetOpenAuth.OAuth;
- using OpenIdRelyingPartyWebForms.Code;
-
- public class Global : HttpApplication {
- public static log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(Global));
-
- internal static StringBuilder LogMessages = new StringBuilder();
-
- internal static WebConsumerOpenIdRelyingParty GoogleWebConsumer {
- get {
- var googleWebConsumer = (WebConsumerOpenIdRelyingParty)HttpContext.Current.Application["GoogleWebConsumer"];
- if (googleWebConsumer == null) {
- googleWebConsumer = new WebConsumerOpenIdRelyingParty { ServiceProvider = GoogleConsumer.ServiceDescription };
- HttpContext.Current.Application["GoogleWebConsumer"] = googleWebConsumer;
- }
-
- return googleWebConsumer;
- }
- }
-
- public static string ToString(NameValueCollection collection) {
- using (StringWriter sw = new StringWriter()) {
- foreach (string key in collection.Keys) {
- sw.WriteLine("{0} = '{1}'", key, collection[key]);
- }
- return sw.ToString();
- }
- }
-
- protected void Application_Start(object sender, EventArgs e) {
- log4net.Config.XmlConfigurator.Configure();
- Logger.Info("Sample starting...");
- }
-
- protected void Application_End(object sender, EventArgs e) {
- Logger.Info("Sample shutting down...");
-
- // this would be automatic, but in partial trust scenarios it is not.
- log4net.LogManager.Shutdown();
- }
-
- protected void Application_BeginRequest(object sender, EventArgs e) {
- // System.Diagnostics.Debugger.Launch();
- Logger.DebugFormat("Processing {0} on {1} ", Request.HttpMethod, stripQueryString(Request.Url));
- if (Request.QueryString.Count > 0) {
- Logger.DebugFormat("Querystring follows: \n{0}", ToString(Request.QueryString));
- }
- if (Request.Form.Count > 0) {
- Logger.DebugFormat("Posted form follows: \n{0}", ToString(Request.Form));
- }
- }
-
- protected void Application_AuthenticateRequest(object sender, EventArgs e) {
- Logger.DebugFormat("User {0} authenticated.", HttpContext.Current.User != null ? "IS" : "is NOT");
- }
-
- protected void Application_EndRequest(object sender, EventArgs e) {
- }
-
- protected void Application_Error(object sender, EventArgs e) {
- Logger.ErrorFormat("An unhandled exception was raised. Details follow: {0}", HttpContext.Current.Server.GetLastError());
- }
-
- private static string stripQueryString(Uri uri) {
- UriBuilder builder = new UriBuilder(uri);
- builder.Query = null;
- return builder.ToString();
- }
- }
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/Default.aspx b/samples/OpenIdRelyingPartyWebForms/MembersOnly/Default.aspx
deleted file mode 100644
index 59a4eed..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/Default.aspx
+++ /dev/null
@@ -1,37 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" %>
-<%@ Import Namespace="OpenIdRelyingPartyWebForms" %>
-<%@ Register Src="~/MembersOnly/ProfileFieldsDisplay.ascx" TagPrefix="cc1" TagName="ProfileFieldsDisplay" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <h2>
- Members Only Area
- </h2>
- <p>
- Congratulations, <b><asp:LoginName ID="LoginName1" runat="server" /></b>.
- You have completed the OpenID login process.
- </p>
-
-<% if (State.PapePolicies != null) { %>
- <p>A PAPE extension was included in the authentication with this content: </p>
- <ul>
- <% if (State.PapePolicies.NistAssuranceLevel != null) {%>
- <li>Nist: <%=HttpUtility.HtmlEncode(State.PapePolicies.NistAssuranceLevel.Value.ToString())%></li>
- <% }
- foreach (string policy in State.PapePolicies.ActualPolicies) { %>
- <li><%=HttpUtility.HtmlEncode(policy) %></li>
- <% }
- if (State.PapePolicies.AuthenticationTimeUtc.HasValue) { %>
- <li>The provider authenticated the user at <%=State.PapePolicies.AuthenticationTimeUtc.Value.ToLocalTime() %> (local time)</li>
- <% } %>
- </ul>
-<% } %>
-
-<% if (State.ProfileFields != null) {
- profileFieldsDisplay.ProfileValues = State.ProfileFields; %>
- <p>
- In addition to authenticating you, your OpenID Provider may
- have told us something about you using the
- Simple Registration extension:
- </p>
- <cc1:ProfileFieldsDisplay runat="server" ID="profileFieldsDisplay" />
-<% } %>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx b/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx
deleted file mode 100644
index b8caa93..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx
+++ /dev/null
@@ -1,22 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="DisplayGoogleContacts.aspx.cs"
- Inherits="OpenIdRelyingPartyWebForms.MembersOnly.DisplayGoogleContacts" Async="true" %>
-
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
- <asp:View ID="View1" runat="server">
- <p>Obtain an access token by <asp:HyperLink NavigateUrl="~/loginPlusOAuth.aspx" runat="server"
- Text="logging in at our OpenID+OAuth hybrid login page" />. </p>
- <p>If you've already done that, then you might have inadvertently clicked "Allow [this
- site] to remember me", which causes Google to stop sending the access token that
- this sample doesn't save. If you did check it, you can restore this sample&#39;s
- functionality by <a href="https://www.google.com/accounts/IssuedAuthSubTokens">revoking
- access</a> to this site from your Google Account. </p>
- </asp:View>
- <asp:View ID="View2" runat="server">
- <h2>Address book</h2>
- <p>These are the contacts for Google Account: <asp:Label ID="emailLabel" runat="server"
- Font-Bold="True" /> and OpenID <asp:Label ID="claimedIdLabel" runat="server" Font-Bold="True" /></p>
- <asp:PlaceHolder ID="resultsPlaceholder" runat="server" />
- </asp:View>
- </asp:MultiView>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.cs b/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.cs
deleted file mode 100644
index d06e2f6..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-namespace OpenIdRelyingPartyWebForms.MembersOnly {
- using System;
- using System.Linq;
- using System.Text;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Xml.Linq;
- using DotNetOpenAuth.ApplicationBlock;
- using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
-
- public partial class DisplayGoogleContacts : System.Web.UI.Page {
- protected void Page_Load(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- if (!string.IsNullOrEmpty(State.GoogleAccessToken.Token)) {
- this.MultiView1.ActiveViewIndex = 1;
- if (State.FetchResponse != null && State.FetchResponse.Attributes.Contains(WellKnownAttributes.Contact.Email)) {
- this.emailLabel.Text = State.FetchResponse.Attributes[WellKnownAttributes.Contact.Email].Values[0];
- } else {
- this.emailLabel.Text = "unavailable";
- }
- this.claimedIdLabel.Text = this.User.Identity.Name;
- var google = new GoogleConsumer {
- ConsumerKey = Global.GoogleWebConsumer.ConsumerKey,
- ConsumerSecret = Global.GoogleWebConsumer.ConsumerSecret,
- };
- var contactsDocument = await google.GetContactsAsync(State.GoogleAccessToken);
- this.RenderContacts(contactsDocument);
- }
- }));
- }
-
- private void RenderContacts(XDocument contactsDocument) {
- var contacts = from entry in contactsDocument.Root.Elements(XName.Get("entry", "http://www.w3.org/2005/Atom"))
- select new { Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value, Email = entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value };
- StringBuilder tableBuilder = new StringBuilder();
- tableBuilder.Append("<table><tr><td>Name</td><td>Email</td></tr>");
- foreach (var contact in contacts) {
- tableBuilder.AppendFormat(
- "<tr><td>{0}</td><td>{1}</td></tr>",
- HttpUtility.HtmlEncode(contact.Name),
- HttpUtility.HtmlEncode(contact.Email));
- }
- tableBuilder.Append("</table>");
- this.resultsPlaceholder.Controls.Add(new Literal { Text = tableBuilder.ToString() });
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.designer.cs
deleted file mode 100644
index 9521781..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/DisplayGoogleContacts.aspx.designer.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms.MembersOnly {
-
-
- public partial class DisplayGoogleContacts {
-
- /// <summary>
- /// MultiView1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.MultiView MultiView1;
-
- /// <summary>
- /// View1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View View1;
-
- /// <summary>
- /// View2 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View View2;
-
- /// <summary>
- /// emailLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label emailLabel;
-
- /// <summary>
- /// claimedIdLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label claimedIdLabel;
-
- /// <summary>
- /// resultsPlaceholder control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.PlaceHolder resultsPlaceholder;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx b/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx
deleted file mode 100644
index b2e5f7e..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx
+++ /dev/null
@@ -1,75 +0,0 @@
-<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProfileFieldsDisplay.ascx.cs" Inherits="OpenIdRelyingPartyWebForms.MembersOnly.ProfileFieldsDisplay" %>
-<table id="profileFieldsTable" runat="server">
- <tr>
- <td>
- Nickname
- </td>
- <td>
- <%=ProfileValues.Nickname %>
- </td>
- </tr>
- <tr>
- <td>
- Email
- </td>
- <td>
- <%=ProfileValues.Email%>
- </td>
- </tr>
- <tr>
- <td>
- FullName
- </td>
- <td>
- <%=ProfileValues.FullName%>
- </td>
- </tr>
- <tr>
- <td>
- Date of Birth
- </td>
- <td>
- <%=ProfileValues.BirthDate.ToString()%>
- </td>
- </tr>
- <tr>
- <td>
- Gender
- </td>
- <td>
- <%=ProfileValues.Gender.ToString()%>
- </td>
- </tr>
- <tr>
- <td>
- Post Code
- </td>
- <td>
- <%=ProfileValues.PostalCode%>
- </td>
- </tr>
- <tr>
- <td>
- Country
- </td>
- <td>
- <%=ProfileValues.Country%>
- </td>
- </tr>
- <tr>
- <td>
- Language
- </td>
- <td>
- <%=ProfileValues.Language%>
- </td>
- </tr>
- <tr>
- <td>
- Timezone
- </td>
- <td>
- <%=ProfileValues.TimeZone%>
- </td>
- </tr>
-</table>
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.cs b/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.cs
deleted file mode 100644
index 4fb127e..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace OpenIdRelyingPartyWebForms.MembersOnly {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
-
- public partial class ProfileFieldsDisplay : System.Web.UI.UserControl {
- public ClaimsResponse ProfileValues { get; set; }
- }
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.designer.cs b/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.designer.cs
deleted file mode 100644
index 4a5dc8a..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/ProfileFieldsDisplay.ascx.designer.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4918
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms.MembersOnly {
-
-
- public partial class ProfileFieldsDisplay {
-
- /// <summary>
- /// profileFieldsTable control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlTable profileFieldsTable;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/MembersOnly/Web.config b/samples/OpenIdRelyingPartyWebForms/MembersOnly/Web.config
deleted file mode 100644
index 3cfad05..0000000
--- a/samples/OpenIdRelyingPartyWebForms/MembersOnly/Web.config
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Note: As an alternative to hand editing this file you can use the
- web admin tool to configure settings for your application. Use
- the Website->Asp.Net Configuration option in Visual Studio.
- A full list of settings and comments can be found in
- machine.config.comments usually located in
- \Windows\Microsoft.Net\Framework\v2.x\Config
--->
-<configuration>
- <appSettings/>
- <connectionStrings/>
- <system.web>
- <authorization>
- <deny users="?"/>
- </authorization>
- </system.web>
-</configuration>
diff --git a/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx b/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx
deleted file mode 100644
index e9dcf5d..0000000
--- a/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx
+++ /dev/null
@@ -1,47 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoIdentityOpenId.aspx.cs" Async="true"
- MasterPageFile="~/Site.Master" Inherits="OpenIdRelyingPartyWebForms.NoIdentityOpenId" %>
-
-<asp:Content runat="server" ContentPlaceHolderID="Main">
- <h2>No-login OpenID extension Page </h2>
- <p>This demonstrates an RP sending an extension-only request to an OP that carries
- extensions that request anonymous information about you. In this scenario, the OP
- would still authenticate the user, but would not assert any OpenID Identifier back
- to the RP, but might provide information regarding the user such as age or membership
- in an organization. </p>
- <p><b>Note: </b>At time of this writing, most OPs do not support this feature, although
- it is documented in the OpenID 2.0 spec. </p>
- <asp:Panel runat="server" DefaultButton="beginButton">
- <asp:Label ID="Label1" runat="server" Text="OpenID Identifier" /> <asp:TextBox ID="openIdBox"
- runat="server" />
- <asp:Button ID="beginButton" runat="server" Text="Begin" OnClick="beginButton_Click" />
- <asp:CustomValidator runat="server" ID="openidValidator" ErrorMessage="Invalid OpenID Identifier"
- ControlToValidate="openIdBox" EnableViewState="false" Display="Dynamic" OnServerValidate="openidValidator_ServerValidate" />
- <asp:Label runat="server" EnableViewState="false" ID="resultMessage" />
- </asp:Panel>
- <asp:Panel runat="server" ID="ExtensionResponsesPanel" EnableViewState="false" Visible="false">
- <p>We have received a reasonable response from the Provider. Below is the Simple Registration
- response we received, if any: </p>
- <table id="profileFieldsTable" runat="server">
- <tr>
- <td>Email </td>
- <td><asp:Label runat="server" ID="emailLabel" /> </td>
- </tr>
- <tr>
- <td>Gender </td>
- <td><asp:Label runat="server" ID="genderLabel" /> </td>
- </tr>
- <tr>
- <td>Post Code </td>
- <td><asp:Label runat="server" ID="postalCodeLabel" /> </td>
- </tr>
- <tr>
- <td>Country </td>
- <td><asp:Label runat="server" ID="countryLabel" /> </td>
- </tr>
- <tr>
- <td>Timezone </td>
- <td><asp:Label runat="server" ID="timeZoneLabel" /> </td>
- </tr>
- </table>
- </asp:Panel>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.cs b/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.cs
deleted file mode 100644
index fcfa257..0000000
--- a/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Threading;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using DotNetOpenAuth.Messaging;
- using DotNetOpenAuth.OpenId;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class NoIdentityOpenId : System.Web.UI.Page {
- protected async void Page_Load(object sender, EventArgs e) {
- this.openIdBox.Focus();
- using (OpenIdRelyingParty rp = new OpenIdRelyingParty()) {
- IAuthenticationResponse response = await rp.GetResponseAsync(new HttpRequestWrapper(this.Request), this.Response.ClientDisconnectedToken);
- if (response != null) {
- switch (response.Status) {
- case AuthenticationStatus.ExtensionsOnly:
- this.ExtensionResponsesPanel.Visible = true;
-
- // This is the "success" status we get when no authentication was requested.
- var sreg = response.GetExtension<ClaimsResponse>();
- if (sreg != null) {
- this.emailLabel.Text = sreg.Email;
- this.timeZoneLabel.Text = sreg.TimeZone;
- this.postalCodeLabel.Text = sreg.PostalCode;
- this.countryLabel.Text = sreg.Country;
- if (sreg.Gender.HasValue) {
- this.genderLabel.Text = sreg.Gender.Value.ToString();
- }
- }
- break;
- case AuthenticationStatus.Canceled:
- this.resultMessage.Text = "Canceled at OP. This may be a sign that the OP doesn't support this message.";
- break;
- case AuthenticationStatus.Failed:
- this.resultMessage.Text = "OP returned a failure: " + response.Exception;
- break;
- case AuthenticationStatus.SetupRequired:
- case AuthenticationStatus.Authenticated:
- default:
- this.resultMessage.Text = "OP returned an unexpected response.";
- break;
- }
- }
- }
- }
-
- protected void beginButton_Click(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- if (!this.Page.IsValid) {
- return; // don't login if custom validation failed.
- }
- try {
- using (OpenIdRelyingParty rp = new OpenIdRelyingParty()) {
- var request =
- await
- rp.CreateRequestAsync(this.openIdBox.Text, new HttpRequestWrapper(Request), Response.ClientDisconnectedToken);
- request.IsExtensionOnly = true;
-
- // This is where you would add any OpenID extensions you wanted
- // to include in the request.
- request.AddExtension(
- new ClaimsRequest {
- Email = DemandLevel.Request,
- Country = DemandLevel.Request,
- Gender = DemandLevel.Require,
- PostalCode = DemandLevel.Require,
- TimeZone = DemandLevel.Require,
- });
-
- await request.RedirectToProviderAsync(new HttpContextWrapper(Context), Response.ClientDisconnectedToken);
- }
- } catch (ProtocolException ex) {
- // The user probably entered an Identifier that
- // was not a valid OpenID endpoint.
- this.openidValidator.Text = ex.Message;
- this.openidValidator.IsValid = false;
- }
- }));
- }
-
- protected void openidValidator_ServerValidate(object source, ServerValidateEventArgs args) {
- // This catches common typos that result in an invalid OpenID Identifier.
- args.IsValid = Identifier.IsValid(args.Value);
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.designer.cs
deleted file mode 100644
index 348ea31..0000000
--- a/samples/OpenIdRelyingPartyWebForms/NoIdentityOpenId.aspx.designer.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class NoIdentityOpenId {
-
- /// <summary>
- /// Label1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label Label1;
-
- /// <summary>
- /// openIdBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.TextBox openIdBox;
-
- /// <summary>
- /// beginButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Button beginButton;
-
- /// <summary>
- /// openidValidator control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.CustomValidator openidValidator;
-
- /// <summary>
- /// resultMessage control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label resultMessage;
-
- /// <summary>
- /// ExtensionResponsesPanel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Panel ExtensionResponsesPanel;
-
- /// <summary>
- /// profileFieldsTable control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlTable profileFieldsTable;
-
- /// <summary>
- /// emailLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label emailLabel;
-
- /// <summary>
- /// genderLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label genderLabel;
-
- /// <summary>
- /// postalCodeLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label postalCodeLabel;
-
- /// <summary>
- /// countryLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label countryLabel;
-
- /// <summary>
- /// timeZoneLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label timeZoneLabel;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/OpenIdRelyingPartyWebForms.csproj b/samples/OpenIdRelyingPartyWebForms/OpenIdRelyingPartyWebForms.csproj
deleted file mode 100644
index 8a9e99d..0000000
--- a/samples/OpenIdRelyingPartyWebForms/OpenIdRelyingPartyWebForms.csproj
+++ /dev/null
@@ -1,318 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.props))\EnlistmentInfo.props" Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.props))' != '' " />
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
- <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
- <IISExpressSSLPort />
- <IISExpressAnonymousAuthentication />
- <IISExpressWindowsAuthentication />
- <IISExpressUseClassicPipelineMode />
- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\src\</SolutionDir>
- </PropertyGroup>
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{1E8AEA89-BF69-47A1-B290-E8B0FE588700}</ProjectGuid>
- <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>OpenIdRelyingPartyWebForms</RootNamespace>
- <AssemblyName>OpenIdRelyingPartyWebForms</AssemblyName>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <OldToolsVersion>4.0</OldToolsVersion>
- <UpgradeBackupLocation />
- <TargetFrameworkProfile />
- <UseIISExpress>true</UseIISExpress>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>TRACE;DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'CodeAnalysis|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <DebugType>full</DebugType>
- <PlatformTarget>AnyCPU</PlatformTarget>
- <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
- <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
- </PropertyGroup>
- <PropertyGroup>
- <DefineConstants>$(DefineConstants);SAMPLESONLY</DefineConstants>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="log4net, Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\src\packages\log4net.2.0.2\lib\net40-full\log4net.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Net.Http" />
- <Reference Include="System.Net.Http.Extensions">
- <HintPath>..\..\src\packages\Microsoft.Net.Http.2.2.15\lib\net45\System.Net.Http.Extensions.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Http.Primitives">
- <HintPath>..\..\src\packages\Microsoft.Net.Http.2.2.15\lib\net45\System.Net.Http.Primitives.dll</HintPath>
- </Reference>
- <Reference Include="System.Net.Http.WebRequest" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.ApplicationServices" />
- <Reference Include="System.Web.DynamicData" />
- <Reference Include="System.Web.Entity" />
- <Reference Include="System.Web.Extensions" />
- <Reference Include="System.Xml" />
- <Reference Include="System.Configuration" />
- <Reference Include="System.Web.Services" />
- <Reference Include="System.EnterpriseServices" />
- <Reference Include="System.Web.Mobile" />
- <Reference Include="System.Xml.Linq" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="Default.aspx" />
- <Content Include="DetectGoogleSession.aspx" />
- <Content Include="Global.asax" />
- <Content Include="images\openid_login.png" />
- <Content Include="login.aspx" />
- <Content Include="loginProgrammatic.aspx" />
- <Content Include="logout.aspx" />
- <Content Include="PrivacyPolicy.aspx" />
- <Content Include="styles.css" />
- <Content Include="TracePage.aspx" />
- <Content Include="Web.config">
- <SubType>Designer</SubType>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ajaxlogin.aspx.cs">
- <DependentUpon>ajaxlogin.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="ajaxlogin.aspx.designer.cs">
- <DependentUpon>ajaxlogin.aspx</DependentUpon>
- </Compile>
- <Compile Include="Code\CustomStore.cs" />
- <Compile Include="Code\CustomStoreDataSet.cs">
- <DependentUpon>CustomStoreDataSet.xsd</DependentUpon>
- <SubType>Component</SubType>
- </Compile>
- <Compile Include="Code\CustomStoreDataSet.Designer.cs">
- <DependentUpon>CustomStoreDataSet.cs</DependentUpon>
- </Compile>
- <Compile Include="Code\CustomStoreDataSet1.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>CustomStoreDataSet.xsd</DependentUpon>
- </Compile>
- <Compile Include="Code\State.cs" />
- <Compile Include="Code\TracePageAppender.cs" />
- <Compile Include="DetectGoogleSession.aspx.cs">
- <DependentUpon>DetectGoogleSession.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="DetectGoogleSession.aspx.designer.cs">
- <DependentUpon>DetectGoogleSession.aspx</DependentUpon>
- </Compile>
- <Compile Include="loginGoogleApps.aspx.cs">
- <DependentUpon>loginGoogleApps.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="loginGoogleApps.aspx.designer.cs">
- <DependentUpon>loginGoogleApps.aspx</DependentUpon>
- </Compile>
- <Compile Include="loginPlusOAuthSampleOP.aspx.cs">
- <DependentUpon>loginPlusOAuthSampleOP.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="loginPlusOAuthSampleOP.aspx.designer.cs">
- <DependentUpon>loginPlusOAuthSampleOP.aspx</DependentUpon>
- </Compile>
- <Compile Include="Global.asax.cs">
- <DependentUpon>Global.asax</DependentUpon>
- </Compile>
- <Compile Include="login.aspx.cs">
- <DependentUpon>login.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="login.aspx.designer.cs">
- <DependentUpon>login.aspx</DependentUpon>
- </Compile>
- <Compile Include="loginPlusOAuth.aspx.cs">
- <DependentUpon>loginPlusOAuth.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="loginPlusOAuth.aspx.designer.cs">
- <DependentUpon>loginPlusOAuth.aspx</DependentUpon>
- </Compile>
- <Compile Include="loginProgrammatic.aspx.cs">
- <DependentUpon>loginProgrammatic.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="loginProgrammatic.aspx.designer.cs">
- <DependentUpon>loginProgrammatic.aspx</DependentUpon>
- </Compile>
- <Compile Include="MembersOnly\DisplayGoogleContacts.aspx.cs">
- <DependentUpon>DisplayGoogleContacts.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="MembersOnly\DisplayGoogleContacts.aspx.designer.cs">
- <DependentUpon>DisplayGoogleContacts.aspx</DependentUpon>
- </Compile>
- <Compile Include="MembersOnly\ProfileFieldsDisplay.ascx.cs">
- <DependentUpon>ProfileFieldsDisplay.ascx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="MembersOnly\ProfileFieldsDisplay.ascx.designer.cs">
- <DependentUpon>ProfileFieldsDisplay.ascx</DependentUpon>
- </Compile>
- <Compile Include="NoIdentityOpenId.aspx.cs">
- <DependentUpon>NoIdentityOpenId.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="NoIdentityOpenId.aspx.designer.cs">
- <DependentUpon>NoIdentityOpenId.aspx</DependentUpon>
- </Compile>
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="TracePage.aspx.cs">
- <DependentUpon>TracePage.aspx</DependentUpon>
- <SubType>ASPXCodeBehind</SubType>
- </Compile>
- <Compile Include="TracePage.aspx.designer.cs">
- <DependentUpon>TracePage.aspx</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Content Include="ajaxlogin.aspx" />
- <Content Include="MembersOnly\Default.aspx" />
- <Content Include="Site.Master" />
- <Content Include="xrds.aspx" />
- </ItemGroup>
- <ItemGroup>
- <Content Include="favicon.ico" />
- <Content Include="images\DotNetOpenAuth.png" />
- <Content Include="loginGoogleApps.aspx" />
- <Content Include="loginPlusOAuthSampleOP.aspx" />
- <Content Include="images\attention.png" />
- <Content Include="images\yahoo.png" />
- <Content Include="loginPlusOAuth.aspx" />
- <Content Include="MembersOnly\DisplayGoogleContacts.aspx" />
- <Content Include="MembersOnly\ProfileFieldsDisplay.ascx" />
- <Content Include="MembersOnly\Web.config" />
- <Content Include="NoIdentityOpenId.aspx" />
- </ItemGroup>
- <ItemGroup>
- <None Include="Code\CustomStoreDataSet.xsc">
- <DependentUpon>CustomStoreDataSet.xsd</DependentUpon>
- </None>
- <None Include="Code\CustomStoreDataSet.xsd">
- <Generator>MSDataSetGenerator</Generator>
- <LastGenOutput>CustomStoreDataSet1.Designer.cs</LastGenOutput>
- <SubType>Designer</SubType>
- </None>
- <None Include="Code\CustomStoreDataSet.xss">
- <DependentUpon>CustomStoreDataSet.xsd</DependentUpon>
- </None>
- <Content Include="packages.config" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.Core.UI\DotNetOpenAuth.Core.UI.csproj">
- <Project>{173E7B8D-E751-46E2-A133-F72297C0D2F4}</Project>
- <Name>DotNetOpenAuth.Core.UI</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.Core\DotNetOpenAuth.Core.csproj">
- <Project>{60426312-6AE5-4835-8667-37EDEA670222}</Project>
- <Name>DotNetOpenAuth.Core</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OAuth.Consumer\DotNetOpenAuth.OAuth.Consumer.csproj">
- <Project>{B202E40D-4663-4A2B-ACDA-865F88FF7CAA}</Project>
- <Name>DotNetOpenAuth.OAuth.Consumer</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OAuth\DotNetOpenAuth.OAuth.csproj">
- <Project>{A288FCC8-6FCF-46DA-A45E-5F9281556361}</Project>
- <Name>DotNetOpenAuth.OAuth</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OpenId.RelyingParty.UI\DotNetOpenAuth.OpenId.RelyingParty.UI.csproj">
- <Project>{1ED8D424-F8AB-4050-ACEB-F27F4F909484}</Project>
- <Name>DotNetOpenAuth.OpenId.RelyingParty.UI</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OpenId.RelyingParty\DotNetOpenAuth.OpenId.RelyingParty.csproj">
- <Project>{F458AB60-BA1C-43D9-8CEF-EC01B50BE87B}</Project>
- <Name>DotNetOpenAuth.OpenId.RelyingParty</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OpenId.UI\DotNetOpenAuth.OpenId.UI.csproj">
- <Project>{75E13AAE-7D51-4421-ABFD-3F3DC91F576E}</Project>
- <Name>DotNetOpenAuth.OpenId.UI</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OpenIdOAuth\DotNetOpenAuth.OpenIdOAuth.csproj">
- <Project>{4BFAA336-5DF3-4F27-82D3-06D13240E8AB}</Project>
- <Name>DotNetOpenAuth.OpenIdOAuth</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\src\DotNetOpenAuth.OpenId\DotNetOpenAuth.OpenId.csproj">
- <Project>{3896A32A-E876-4C23-B9B8-78E17D134CD3}</Project>
- <Name>DotNetOpenAuth.OpenId</Name>
- </ProjectReference>
- <ProjectReference Include="..\DotNetOpenAuth.ApplicationBlock\DotNetOpenAuth.ApplicationBlock.csproj">
- <Project>{AA78D112-D889-414B-A7D4-467B34C7B663}</Project>
- <Name>DotNetOpenAuth.ApplicationBlock</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
- <ProjectExtensions>
- <VisualStudio>
- <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
- <WebProjectProperties>
- <UseIIS>True</UseIIS>
- <AutoAssignPort>True</AutoAssignPort>
- <DevelopmentServerPort>4856</DevelopmentServerPort>
- <DevelopmentServerVPath>/</DevelopmentServerVPath>
- <IISUrl>http://localhost:4856/</IISUrl>
- <NTLMAuthentication>False</NTLMAuthentication>
- <UseCustomServer>False</UseCustomServer>
- <CustomServerUrl>
- </CustomServerUrl>
- <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
- </WebProjectProperties>
- </FlavorProperties>
- </VisualStudio>
- </ProjectExtensions>
- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.targets))\EnlistmentInfo.targets" Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), EnlistmentInfo.targets))' != '' " />
- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
- <Import Project="..\..\src\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\src\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets')" />
- <Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
- <Error Condition="!Exists('..\..\src\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
- <Error Condition="Exists('..\..\src\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
- </Target>
-</Project> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/PrivacyPolicy.aspx b/samples/OpenIdRelyingPartyWebForms/PrivacyPolicy.aspx
deleted file mode 100644
index e99112e..0000000
--- a/samples/OpenIdRelyingPartyWebForms/PrivacyPolicy.aspx
+++ /dev/null
@@ -1,7 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <h2>Privacy Policy</h2>
- <p>
- Some privacy policy would go here.
- </p>
-</asp:Content> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Properties/AssemblyInfo.cs b/samples/OpenIdRelyingPartyWebForms/Properties/AssemblyInfo.cs
deleted file mode 100644
index ea71bfc..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("OpenIdRelyingPartyWebForms sample")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("DotNetOpenAuth")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.2.0.0")]
-[assembly: AssemblyFileVersion("0.2.0.0")]
diff --git a/samples/OpenIdRelyingPartyWebForms/Settings.StyleCop b/samples/OpenIdRelyingPartyWebForms/Settings.StyleCop
deleted file mode 100644
index 7f55ce6..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Settings.StyleCop
+++ /dev/null
@@ -1 +0,0 @@
-<StyleCopSettings Version="4.3" /> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/Site.Master b/samples/OpenIdRelyingPartyWebForms/Site.Master
deleted file mode 100644
index a7a3dab..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Site.Master
+++ /dev/null
@@ -1,39 +0,0 @@
-<%@ Master Language="C#" AutoEventWireup="true" %>
-<%@ Import Namespace="OpenIdRelyingPartyWebForms" %>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<script runat="server">
- protected void Page_Load(object sender, EventArgs e) {
- friendlyUsername.Text = State.FriendlyLoginName;
- }
-
- protected void LoginStatus1_LoggedOut(object sender, EventArgs e) {
- State.Clear();
- }
-</script>
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head runat="server">
- <title>OpenID Relying Party, by DotNetOpenAuth</title>
- <link href="styles.css" rel="stylesheet" type="text/css" />
- <asp:ContentPlaceHolder ID="head" runat="server" />
-</head>
-<body>
- <form id="form1" runat="server">
- <span style="float: right">
- <asp:Image runat="server" ID="openIdUsernameImage" ImageUrl="~/images/openid_login.png"
- EnableViewState="false" />
- <asp:Label runat="server" ID="friendlyUsername" Text="" EnableViewState="false" />
- <asp:LoginStatus ID="LoginStatus1" runat="server" OnLoggedOut="LoginStatus1_LoggedOut" />
- </span>
- <div>
- <a href="http://dotnetopenauth.net">
- <img runat="server" src="~/images/DotNetOpenAuth.png" title="Jump to the project web site."
- alt="DotNetOpenAuth" border='0' /></a>
- </div>
- <div>
- <asp:ContentPlaceHolder ID="Main" runat="server" />
- </div>
- </form>
-</body>
-</html>
diff --git a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx b/samples/OpenIdRelyingPartyWebForms/TracePage.aspx
deleted file mode 100644
index b115298..0000000
--- a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx
+++ /dev/null
@@ -1,16 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TracePage.aspx.cs" Inherits="OpenIdRelyingPartyWebForms.TracePage" %>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head runat="server">
- <title></title>
-</head>
-<body>
- <form id="form1" runat="server">
- <p align="right">
- <asp:Button runat="server" Text="Clear log" ID="clearLogButton" OnClick="clearLogButton_Click" />
- </p>
- <pre><asp:PlaceHolder runat="server" ID="placeHolder1" /></pre>
- </form>
-</body>
-</html>
diff --git a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs b/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs
deleted file mode 100644
index 171bb67..0000000
--- a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Collections.Generic;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
-
- public partial class TracePage : System.Web.UI.Page {
- protected void Page_Load(object sender, EventArgs e) {
- this.placeHolder1.Controls.Add(new Label { Text = HttpUtility.HtmlEncode(Global.LogMessages.ToString()) });
- }
-
- protected void clearLogButton_Click(object sender, EventArgs e) {
- Global.LogMessages.Length = 0;
-
- // clear the page immediately, and allow for F5 without a Postback warning.
- this.Response.Redirect(this.Request.Url.AbsoluteUri);
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.designer.cs
deleted file mode 100644
index 8d8720d..0000000
--- a/samples/OpenIdRelyingPartyWebForms/TracePage.aspx.designer.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4912
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class TracePage {
-
- /// <summary>
- /// form1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- /// <summary>
- /// clearLogButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Button clearLogButton;
-
- /// <summary>
- /// placeHolder1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.PlaceHolder placeHolder1;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/Web.config b/samples/OpenIdRelyingPartyWebForms/Web.config
deleted file mode 100644
index f5fada9..0000000
--- a/samples/OpenIdRelyingPartyWebForms/Web.config
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0"?>
-<configuration>
- <configSections>
- <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler" requirePermission="false" />
- <sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
- <section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" />
- <section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
- <section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
- <section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
- </sectionGroup>
- </configSections>
-
- <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
- which is necessary for OpenID urls with unicode characters in the domain/host name.
- It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
- <uri>
- <idn enabled="All"/>
- <iriParsing enabled="true"/>
- </uri>
-
- <system.net>
- <defaultProxy enabled="true" />
- <settings>
- <!-- This setting causes .NET to check certificate revocation lists (CRL)
- before trusting HTTPS certificates. But this setting tends to not
- be allowed in shared hosting environments. -->
- <!--<servicePointManager checkCertificateRevocationList="true"/>-->
- </settings>
- </system.net>
-
- <!-- this is an optional configuration section where aspects of dotnetopenauth can be customized -->
- <dotNetOpenAuth>
- <openid>
- <relyingParty>
- <security requireSsl="false">
- <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
- <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
- <add endpoint="https://www.google.com/accounts/o8/ud" />
- </trustedProviders>-->
- </security>
- <behaviors>
- <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
- with OPs that use Attribute Exchange (in various formats). -->
- <add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" />
- <!--<add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.GsaIcamProfile, DotNetOpenAuth.OpenId.RelyingParty" />-->
- </behaviors>
- <!-- Uncomment the following to activate the sample custom store. -->
- <!--<store type="OpenIdRelyingPartyWebForms.Code.CustomStore, OpenIdRelyingPartyWebForms" />-->
- </relyingParty>
- </openid>
- <messaging>
- <untrustedWebRequest>
- <whitelistHosts>
- <!-- since this is a sample, and will often be used with localhost -->
- <add name="localhost" />
- </whitelistHosts>
- </untrustedWebRequest>
- </messaging>
- <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
- <reporting enabled="true" />
- </dotNetOpenAuth>
-
- <appSettings>
- <!-- Fill in your various consumer keys and secrets here to make the sample work. -->
- <!-- You must get these values by signing up with each individual service provider. -->
- <!-- Google sign-up: https://www.google.com/accounts/ManageDomains -->
- <add key="googleConsumerKey" value="demo.dotnetopenauth.net"/>
- <add key="googleConsumerSecret" value="5Yv1TfKm1551QrXZ9GpqepeD"/>
-
- <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
- </appSettings>
- <system.web>
- <!--<sessionState cookieless="true" />-->
- <httpRuntime targetFramework="4.5" />
- <compilation debug="true" targetFramework="4.0" />
- <customErrors mode="RemoteOnly"/>
- <authentication mode="Forms">
- <forms name="OpenIdRelyingPartySession"/> <!-- named cookie prevents conflicts with other samples -->
- </authentication>
- <trace enabled="false" writeToDiagnosticsTrace="true" />
- <!-- Trust level discussion:
- Full: everything works (this is required for Google Apps for Domains support)
- High: TRACE compilation symbol must NOT be defined
- Medium: doesn't work unless originUrl=".*" or WebPermission.Connect is extended, and Google Apps doesn't work.
- Low: doesn't work because WebPermission.Connect is denied.
- -->
- <trust level="Full" originUrl=".*"/>
- <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
- </system.web>
-
- <!-- log4net is a 3rd party (free) logger library that DotNetOpenAuth will use if present but does not require. -->
- <log4net>
- <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
- <file value="RelyingParty.log" />
- <appendToFile value="true" />
- <rollingStyle value="Size" />
- <maxSizeRollBackups value="10" />
- <maximumFileSize value="100KB" />
- <staticLogFileName value="true" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date (GMT%date{%z}) [%thread] %-5level %logger - %message%newline" />
- </layout>
- </appender>
- <appender name="TracePageAppender" type="OpenIdRelyingPartyWebForms.Code.TracePageAppender, OpenIdRelyingPartyWebForms">
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date (GMT%date{%z}) [%thread] %-5level %logger - %message%newline" />
- </layout>
- </appender>
- <!-- Setup the root category, add the appenders and set the default level -->
- <root>
- <level value="INFO" />
- <!--<appender-ref ref="RollingFileAppender" />-->
- <appender-ref ref="TracePageAppender" />
- </root>
- <!-- Specify the level for some specific categories -->
- <logger name="DotNetOpenAuth">
- <level value="INFO" />
- </logger>
- </log4net>
-
- <runtime>
- <legacyHMACWarning enabled="0" />
- </runtime>
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true" />
- </system.webServer>
-</configuration> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx b/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx
deleted file mode 100644
index 916fca3..0000000
--- a/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx
+++ /dev/null
@@ -1,100 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ajaxlogin.aspx.cs" Inherits="OpenIdRelyingPartyWebForms.ajaxlogin"
- ValidateRequest="false" MasterPageFile="~/Site.Master" Async="true" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.RelyingParty" TagPrefix="openid" %>
-<asp:Content runat="server" ContentPlaceHolderID="head">
-<script>
-// window.openid_visible_iframe = true; // causes the hidden iframe to show up
-// window.openid_trace = true; // causes lots of messages
-</script>
-<style type="text/css">
-.textbox
-{
- width: 200px;
-}
-input.openidtextbox
-{
- width: 185px;
-}
-td
-{
- vertical-align: top;
-}
-</style>
-</asp:Content>
-
-<asp:Content runat="server" ContentPlaceHolderID="Main">
-<script type="text/javascript">
- function onauthenticated(sender, e) {
- var emailBox = document.getElementById('<%= emailAddressBox.ClientID %>');
- emailBox.disabled = false;
- emailBox.title = null; // remove tooltip describing why the box was disabled.
- // the sreg response may not always be included.
- if (e && e.sreg) {
- // and the email field may not always be included in the sreg response.
- if (e.sreg.email) { emailBox.value = e.sreg.email; }
- }
- }
-</script>
-
- <asp:MultiView runat="server" ID="multiView" ActiveViewIndex='0'>
- <asp:View runat="server" ID="commentSubmission">
- <p>
- The scenario here is that you've just read a blog post and you want to comment on
- that post. You're <b>not</b> actually logging into the web site by entering your
- OpenID here, but your OpenID <i>will</i> be verified before the comment is posted.
- </p>
- <table>
- <tr>
- <td>
- OpenID
- </td>
- <td>
- <openid:OpenIdAjaxTextBox ID="OpenIdAjaxTextBox1" runat="server" CssClass="openidtextbox"
- OnLoggingIn="OpenIdAjaxTextBox1_LoggingIn"
- OnLoggedIn="OpenIdAjaxTextBox1_LoggedIn"
- OnClientAssertionReceived="onauthenticated(sender, e)"
- OnUnconfirmedPositiveAssertion="OpenIdAjaxTextBox1_UnconfirmedPositiveAssertion" />
- <asp:RequiredFieldValidator ID="openidRequiredValidator" runat="server"
- ControlToValidate="OpenIdAjaxTextBox1" ValidationGroup="openidVG"
- ErrorMessage="The OpenID field is required." SetFocusOnError="True">
- <asp:Image runat="server" ImageUrl="~/images/attention.png" ToolTip="This is a required field" />
- </asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td>
- Email
- </td>
- <td>
- <asp:TextBox runat="server" ID="emailAddressBox" Enabled="false" CssClass="textbox" ToolTip="This field will be enabled after you log in with your OpenID." />
- </td>
- </tr>
- <tr>
- <td>
- Comments
- </td>
- <td>
- <asp:TextBox runat="server" ID="commentsBox" TextMode="MultiLine" Rows="5" CssClass="textbox" />
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <asp:Button runat="server" Text="Submit" ID="submitButton" OnClick="submitButton_Click" />
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View runat="server" ID="commentSubmitted">
- <p>Congratulations,
- <asp:Label runat="server" ID="emailLabel" />! Your comment was received (and discarded...
- this is just a demo after all).</p>
- <asp:LinkButton runat="server" Text="Go back and change something in the comment"
- OnClick="editComment_Click" />
- </asp:View>
- <asp:View runat="server" ID="commentFailed">
- <p>Your comment submission failed.</p>
- </asp:View>
- </asp:MultiView>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.cs b/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.cs
deleted file mode 100644
index ebfece3..0000000
--- a/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class ajaxlogin : System.Web.UI.Page {
- protected void Page_Load(object sender, EventArgs e) {
- if (!IsPostBack) {
- this.OpenIdAjaxTextBox1.Focus();
- }
- }
-
- protected void OpenIdAjaxTextBox1_LoggingIn(object sender, OpenIdEventArgs e) {
- e.Request.AddExtension(new ClaimsRequest {
- Email = DemandLevel.Require,
- });
- }
-
- protected void OpenIdAjaxTextBox1_LoggedIn(object sender, OpenIdEventArgs e) {
- Label label = (Label)this.commentSubmitted.FindControl("emailLabel");
- label.Text = e.Response.FriendlyIdentifierForDisplay;
-
- // We COULD get the sreg extension response here for the email, but since we let the user
- // potentially change the email in the HTML form, we'll use that instead.
- ////var claims = OpenIdAjaxTextBox1.AuthenticationResponse.GetExtension<ClaimsResponse>();
- if (this.emailAddressBox.Text.Length > 0) {
- label.Text += " (" + this.emailAddressBox.Text + ")";
- }
- }
-
- protected void submitButton_Click(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- if (!Page.IsValid) {
- return;
- }
-
- var response = await this.OpenIdAjaxTextBox1.GetAuthenticationResponseAsync(Response.ClientDisconnectedToken);
- if (response != null) {
- if (response.Status == AuthenticationStatus.Authenticated) {
- // Save comment here!
- this.multiView.ActiveViewIndex = 1;
- } else {
- this.multiView.ActiveViewIndex = 2;
- }
- }
- }));
- }
-
- protected void editComment_Click(object sender, EventArgs e) {
- this.multiView.ActiveViewIndex = 0;
- }
-
- protected void OpenIdAjaxTextBox1_UnconfirmedPositiveAssertion(object sender, OpenIdEventArgs e) {
- // This is where we register extensions that we want to have available in javascript
- // on the browser.
- this.OpenIdAjaxTextBox1.RegisterClientScriptExtension<ClaimsResponse>("sreg");
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.designer.cs
deleted file mode 100644
index 3687e1f..0000000
--- a/samples/OpenIdRelyingPartyWebForms/ajaxlogin.aspx.designer.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class ajaxlogin {
-
- /// <summary>
- /// multiView control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.MultiView multiView;
-
- /// <summary>
- /// commentSubmission control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View commentSubmission;
-
- /// <summary>
- /// OpenIdAjaxTextBox1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::DotNetOpenAuth.OpenId.RelyingParty.OpenIdAjaxTextBox OpenIdAjaxTextBox1;
-
- /// <summary>
- /// openidRequiredValidator control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.RequiredFieldValidator openidRequiredValidator;
-
- /// <summary>
- /// emailAddressBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.TextBox emailAddressBox;
-
- /// <summary>
- /// commentsBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.TextBox commentsBox;
-
- /// <summary>
- /// submitButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Button submitButton;
-
- /// <summary>
- /// commentSubmitted control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View commentSubmitted;
-
- /// <summary>
- /// emailLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label emailLabel;
-
- /// <summary>
- /// commentFailed control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View commentFailed;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/favicon.ico b/samples/OpenIdRelyingPartyWebForms/favicon.ico
deleted file mode 100644
index e227dbe..0000000
--- a/samples/OpenIdRelyingPartyWebForms/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/samples/OpenIdRelyingPartyWebForms/images/DotNetOpenAuth.png b/samples/OpenIdRelyingPartyWebForms/images/DotNetOpenAuth.png
deleted file mode 100644
index 442b986..0000000
--- a/samples/OpenIdRelyingPartyWebForms/images/DotNetOpenAuth.png
+++ /dev/null
Binary files differ
diff --git a/samples/OpenIdRelyingPartyWebForms/images/attention.png b/samples/OpenIdRelyingPartyWebForms/images/attention.png
deleted file mode 100644
index 8003700..0000000
--- a/samples/OpenIdRelyingPartyWebForms/images/attention.png
+++ /dev/null
Binary files differ
diff --git a/samples/OpenIdRelyingPartyWebForms/images/openid_login.png b/samples/OpenIdRelyingPartyWebForms/images/openid_login.png
deleted file mode 100644
index caebd58..0000000
--- a/samples/OpenIdRelyingPartyWebForms/images/openid_login.png
+++ /dev/null
Binary files differ
diff --git a/samples/OpenIdRelyingPartyWebForms/images/yahoo.png b/samples/OpenIdRelyingPartyWebForms/images/yahoo.png
deleted file mode 100644
index 3129217..0000000
--- a/samples/OpenIdRelyingPartyWebForms/images/yahoo.png
+++ /dev/null
Binary files differ
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx b/samples/OpenIdRelyingPartyWebForms/login.aspx
deleted file mode 100644
index fc42b73..0000000
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx
+++ /dev/null
@@ -1,38 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="login.aspx.cs" Inherits="OpenIdRelyingPartyWebForms.login"
- ValidateRequest="false" MasterPageFile="~/Site.Master" Async="true" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.RelyingParty" TagPrefix="rp" %>
-<%@ Register Assembly="DotNetOpenAuth.OpenId" Namespace="DotNetOpenAuth.OpenId.Extensions.SimpleRegistration" TagPrefix="sreg" %>
-<asp:Content runat="server" ContentPlaceHolderID="Main">
- <h2>Login Page </h2>
- <rp:OpenIdLogin ID="OpenIdLogin1" runat="server" CssClass="openid_login" RequestCountry="Request"
- RequestEmail="Require" RequestGender="Require" RequestPostalCode="Require" RequestTimeZone="Require"
- RememberMeVisible="True" PolicyUrl="~/PrivacyPolicy.aspx" TabIndex="1"
- OnLoggedIn="OpenIdLogin1_LoggedIn" OnLoggingIn="OpenIdLogin1_LoggingIn" />
- <fieldset title="Knobs">
- <asp:CheckBox ID="requireSslCheckBox" runat="server"
- Text="RequireSsl (high security) mode"
- oncheckedchanged="requireSslCheckBox_CheckedChanged" /><br />
- <h4 style="margin-top: 0; margin-bottom: 0">PAPE policies</h4>
- <asp:CheckBoxList runat="server" ID="papePolicies">
- <asp:ListItem Text="Request phishing resistant authentication" Value="http://schemas.openid.net/pape/policies/2007/06/phishing-resistant" />
- <asp:ListItem Text="Request multi-factor authentication" Value="http://schemas.openid.net/pape/policies/2007/06/multi-factor" />
- <asp:ListItem Text="Request physical multi-factor authentication" Value="http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical" />
- <asp:ListItem Text="Request PPID identifier" Value="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier" />
- </asp:CheckBoxList>
- <p>Request that the Provider have authenticated the user in the last
- <asp:TextBox runat="server" ID="maxAuthTimeBox" MaxLength="4" Columns="4" />
- seconds.
- </p>
- <p>Try the PPID identifier functionality against the OpenIDProviderMvc sample.</p>
- </fieldset>
- <p><a href="loginGoogleApps.aspx">Log in using Google Apps for Domains</a>. </p>
- <p>
- <rp:OpenIdButton runat="server" ImageUrl="~/images/yahoo.png" Text="Login with Yahoo!" ID="yahooLoginButton"
- Identifier="https://me.yahoo.com/" OnLoggingIn="OpenIdLogin1_LoggingIn" OnLoggedIn="OpenIdLogin1_LoggedIn">
- <Extensions>
- <sreg:ClaimsRequest Email="Require" />
- </Extensions>
- </rp:OpenIdButton>
- </p>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx.cs b/samples/OpenIdRelyingPartyWebForms/login.aspx.cs
deleted file mode 100644
index 3b5466c..0000000
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Collections.Generic;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class login : System.Web.UI.Page {
- protected void Page_Load(object sender, EventArgs e) {
- this.OpenIdLogin1.Focus();
- }
-
- protected void requireSslCheckBox_CheckedChanged(object sender, EventArgs e) {
- this.OpenIdLogin1.RequireSsl = this.requireSslCheckBox.Checked;
- }
-
- protected void OpenIdLogin1_LoggingIn(object sender, OpenIdEventArgs e) {
- this.prepareRequest(e.Request);
- }
-
- /// <summary>
- /// Fired upon login.
- /// </summary>
- /// <param name="sender">The source of the event.</param>
- /// <param name="e">The <see cref="DotNetOpenAuth.OpenId.RelyingParty.OpenIdEventArgs"/> instance containing the event data.</param>
- /// <remarks>
- /// Note, that straight after login, forms auth will redirect the user
- /// to their original page. So this page may never be rendererd.
- /// </remarks>
- protected void OpenIdLogin1_LoggedIn(object sender, OpenIdEventArgs e) {
- State.FriendlyLoginName = e.Response.FriendlyIdentifierForDisplay;
- State.ProfileFields = e.Response.GetExtension<ClaimsResponse>();
- State.PapePolicies = e.Response.GetExtension<PolicyResponse>();
- }
-
- private void prepareRequest(IAuthenticationRequest request) {
- // Collect the PAPE policies requested by the user.
- List<string> policies = new List<string>();
- foreach (ListItem item in this.papePolicies.Items) {
- if (item.Selected) {
- policies.Add(item.Value);
- }
- }
-
- // Add the PAPE extension if any policy was requested.
- var pape = new PolicyRequest();
- if (policies.Count > 0) {
- foreach (string policy in policies) {
- pape.PreferredPolicies.Add(policy);
- }
- }
-
- if (this.maxAuthTimeBox.Text.Length > 0) {
- pape.MaximumAuthenticationAge = TimeSpan.FromSeconds(double.Parse(this.maxAuthTimeBox.Text));
- }
-
- if (pape.PreferredPolicies.Count > 0 || pape.MaximumAuthenticationAge.HasValue) {
- request.AddExtension(pape);
- }
- }
- }
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs
deleted file mode 100644
index 9ee9edc..0000000
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class login {
-
- /// <summary>
- /// OpenIdLogin1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::DotNetOpenAuth.OpenId.RelyingParty.OpenIdLogin OpenIdLogin1;
-
- /// <summary>
- /// requireSslCheckBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.CheckBox requireSslCheckBox;
-
- /// <summary>
- /// papePolicies control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.CheckBoxList papePolicies;
-
- /// <summary>
- /// maxAuthTimeBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.TextBox maxAuthTimeBox;
-
- /// <summary>
- /// yahooLoginButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::DotNetOpenAuth.OpenId.RelyingParty.OpenIdButton yahooLoginButton;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx b/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx
deleted file mode 100644
index cde9966..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx
+++ /dev/null
@@ -1,16 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="loginGoogleApps.aspx.cs"
- Inherits="OpenIdRelyingPartyWebForms.loginGoogleApps" ValidateRequest="false"
- MasterPageFile="~/Site.Master" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.RelyingParty"
- TagPrefix="rp" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <rp:OpenIdLogin ID="OpenIdLogin1" runat="server" ExampleUrl="yourname@yourdomain.com"
- TabIndex="1" LabelText="Google Apps email address or domain:"
- RegisterVisible="False" onloggedin="OpenIdLogin1_LoggedIn" />
- <asp:Panel runat="server" ID="fullTrustRequired" EnableViewState="false">
- <b>STOP:</b> Full trust permissions are required for Google Apps support
- due to certificate chain verification requirements.
- Modify web.config to allow full trust before trying this sample.
- </asp:Panel>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.cs b/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.cs
deleted file mode 100644
index 8c84b40..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Security;
- using System.Security.Permissions;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using DotNetOpenAuth.OpenId;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class loginGoogleApps : System.Web.UI.Page {
- private static readonly HostMetaDiscoveryService GoogleAppsDiscovery = new HostMetaDiscoveryService {
- UseGoogleHostedHostMeta = true,
- };
-
- private static readonly OpenIdRelyingParty relyingParty;
-
- static loginGoogleApps() {
- relyingParty = new OpenIdRelyingParty();
-
- // We don't necessarily HAVE to clear the other discovery services, but
- // because host-meta discovery (particularly with Google) can cause ambiguity
- // in knowing which discovered endpoints are authoritative. Because of the
- // extra security concerns it's a good idea to have a separate box
- relyingParty.DiscoveryServices.Clear();
- relyingParty.DiscoveryServices.Insert(0, GoogleAppsDiscovery); // it should be first if we don't clear the other discovery services
- }
-
- protected void Page_Load(object sender, EventArgs e) {
- this.OpenIdLogin1.RelyingParty = relyingParty;
- this.OpenIdLogin1.Focus();
-
- this.fullTrustRequired.Visible = IsPartiallyTrusted();
- }
-
- protected void OpenIdLogin1_LoggedIn(object sender, OpenIdEventArgs e) {
- State.FriendlyLoginName = e.Response.FriendlyIdentifierForDisplay;
- }
-
- private static bool IsPartiallyTrusted() {
- try {
- new SecurityPermission(PermissionState.Unrestricted).Demand();
- return false;
- } catch (SecurityException) {
- return true;
- }
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.designer.cs
deleted file mode 100644
index 54223bb..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginGoogleApps.aspx.designer.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class loginGoogleApps {
-
- /// <summary>
- /// OpenIdLogin1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::DotNetOpenAuth.OpenId.RelyingParty.OpenIdLogin OpenIdLogin1;
-
- /// <summary>
- /// fullTrustRequired control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Panel fullTrustRequired;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx b/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx
deleted file mode 100644
index 6c3f822..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx
+++ /dev/null
@@ -1,30 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="loginPlusOAuth.aspx.cs"
- Inherits="OpenIdRelyingPartyWebForms.loginPlusOAuth" ValidateRequest="false"
- MasterPageFile="~/Site.Master" Async="true" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.RelyingParty"
- TagPrefix="rp" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <h2>Login Page </h2>
- <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex='0'>
- <asp:View ID="View1" runat="server">
- <p><b>Important note:</b> Do <b>not</b> check the &quot;Allow [this site] to remember me&quot;
- check box while Google is asking for verification. Doing so will make this
- sample only work once for your account. If you do check it, you can restore this
- sample&#39;s functionality by <a href="https://www.google.com/accounts/IssuedAuthSubTokens">
- revoking access</a> to this site from your Google Account. </p>
- <asp:Button ID="beginButton" runat="server" Text="Login and get Gmail Contacts" OnClick="beginButton_Click" />
- <p>Due to the way Google matches realms and consumer keys, this demo will only work
- when it is run under http://demo.dotnetopenauth.net/. By registering your own consumer
- key with Google and changing the configuration of this sample, you can run it on
- your own public web site, but it can never work from a private (localhost or firewall-protected)
- address. </p>
- </asp:View>
- <asp:View ID="AuthorizationDenied" runat="server">
- Authentication succeeded, but Gmail Contacts access was denied.
- </asp:View>
- <asp:View ID="AuthenticationFailed" runat="server">
- Authentication failed or was canceled.
- </asp:View>
- </asp:MultiView>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.cs b/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.cs
deleted file mode 100644
index ecfaf49..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Threading.Tasks;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
-
- using DotNetOpenAuth.ApplicationBlock;
- using DotNetOpenAuth.OAuth;
- using DotNetOpenAuth.OAuth.Messages;
- using DotNetOpenAuth.OpenId;
- using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class loginPlusOAuth : System.Web.UI.Page {
- private const string GoogleOPIdentifier = "https://www.google.com/accounts/o8/id";
- private static readonly OpenIdRelyingParty relyingParty = new OpenIdRelyingParty();
-
- protected void Page_Load(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- if (!IsPostBack && string.Equals(Request.Url.Host, "localhost", StringComparison.OrdinalIgnoreCase)) {
- // Disable the button since the scenario won't work under localhost,
- // and this will help encourage the user to read the the text above the button.
- this.beginButton.Enabled = false;
- }
-
- IAuthenticationResponse authResponse =
- await relyingParty.GetResponseAsync(new HttpRequestWrapper(Request), Response.ClientDisconnectedToken);
- if (authResponse != null) {
- switch (authResponse.Status) {
- case AuthenticationStatus.Authenticated:
- State.FetchResponse = authResponse.GetExtension<FetchResponse>();
- AccessTokenResponse accessToken =
- await Global.GoogleWebConsumer.ProcessUserAuthorizationAsync(authResponse, Response.ClientDisconnectedToken);
- if (accessToken != null) {
- State.GoogleAccessToken = accessToken.AccessToken;
- FormsAuthentication.SetAuthCookie(authResponse.ClaimedIdentifier, false);
- Response.Redirect("~/MembersOnly/DisplayGoogleContacts.aspx");
- } else {
- MultiView1.SetActiveView(AuthorizationDenied);
- }
- break;
- case AuthenticationStatus.Canceled:
- case AuthenticationStatus.Failed:
- default:
- this.MultiView1.SetActiveView(this.AuthenticationFailed);
- break;
- }
- }
- }));
- }
-
- protected void beginButton_Click(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- var request = await this.GetGoogleRequestAsync();
- await request.RedirectToProviderAsync();
- }));
- }
-
- private async Task<IAuthenticationRequest> GetGoogleRequestAsync() {
- // Google requires that the realm and consumer key be equal,
- // so we constrain the realm to match the realm in the web.config file.
- // This does mean that the return_to URL must also fall under the key,
- // which means this sample will only work on a public web site
- // that is properly registered with Google.
- // We will customize the realm to use http or https based on what the
- // return_to URL will be (which will be this page).
- Realm realm = Request.Url.Scheme + Uri.SchemeDelimiter + (new GoogleConsumer()).ConsumerKey + "/";
- IAuthenticationRequest authReq = await relyingParty.CreateRequestAsync(GoogleOPIdentifier, realm, cancellationToken: Response.ClientDisconnectedToken);
-
- // Prepare the OAuth extension
- string scope = GoogleConsumer.GetScopeUri(GoogleConsumer.Applications.Contacts);
- Global.GoogleWebConsumer.AttachAuthorizationRequest(authReq, scope);
-
- // We also want the user's email address
- var fetch = new FetchRequest();
- fetch.Attributes.AddRequired(WellKnownAttributes.Contact.Email);
- authReq.AddExtension(fetch);
-
- return authReq;
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.designer.cs
deleted file mode 100644
index a9624fe..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuth.aspx.designer.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class loginPlusOAuth {
-
- /// <summary>
- /// MultiView1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.MultiView MultiView1;
-
- /// <summary>
- /// View1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View View1;
-
- /// <summary>
- /// beginButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Button beginButton;
-
- /// <summary>
- /// AuthorizationDenied control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View AuthorizationDenied;
-
- /// <summary>
- /// AuthenticationFailed control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View AuthenticationFailed;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx b/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx
deleted file mode 100644
index 4647939..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx
+++ /dev/null
@@ -1,34 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="loginPlusOAuthSampleOP.aspx.cs"
- Inherits="OpenIdRelyingPartyWebForms.loginPlusOAuthSampleOP" ValidateRequest="false"
- MasterPageFile="~/Site.Master" Async="true" %>
-
-<%@ Register Assembly="DotNetOpenAuth.OpenId.RelyingParty.UI" Namespace="DotNetOpenAuth.OpenId.RelyingParty"
- TagPrefix="rp" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <h2>Login Page </h2>
- <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex='0'>
- <asp:View ID="View1" runat="server">
- <asp:Label runat="server" Text="OpenIdProviderWebForms sample's OP Identifier or Claimed Identifier: " />
- <rp:OpenIdTextBox runat="server" ID="identifierBox" Text="http://localhost:4860/"
- OnLoggingIn="identifierBox_LoggingIn" OnLoggedIn="identifierBox_LoggedIn" OnCanceled="identifierBox_Failed"
- OnFailed="identifierBox_Failed" />
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="required"
- ControlToValidate="identifierBox" />
- <br />
- <asp:Button ID="beginButton" runat="server" Text="Login + OAuth request" OnClick="beginButton_Click" />
- </asp:View>
- <asp:View ID="AuthorizationGiven" runat="server">
- Authentication succeeded, and OAuth access was granted.
- <p>The actual login step is aborted since this sample focuses on the process only
- up to this point.</p>
- </asp:View>
- <asp:View ID="AuthorizationDenied" runat="server">
- Authentication succeeded, but OAuth access was denied.
- <p>The actual login step is aborted since this sample focuses on the process only
- up to this point.</p>
- </asp:View>
- <asp:View ID="AuthenticationFailed" runat="server">
- Authentication failed or was canceled.
- </asp:View>
- </asp:MultiView>
-</asp:Content>
diff --git a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.cs b/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.cs
deleted file mode 100644
index 0446c36..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
-
- using DotNetOpenAuth.ApplicationBlock;
- using DotNetOpenAuth.Messaging;
- using DotNetOpenAuth.OAuth;
- using DotNetOpenAuth.OAuth.ChannelElements;
- using DotNetOpenAuth.OAuth.Messages;
- using DotNetOpenAuth.OpenId;
- using DotNetOpenAuth.OpenId.Extensions.AttributeExchange;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class loginPlusOAuthSampleOP : System.Web.UI.Page {
- protected void Page_Load(object sender, EventArgs e) {
- }
-
- protected void beginButton_Click(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- if (!Page.IsValid) {
- return;
- }
-
- await this.identifierBox.LogOnAsync(Response.ClientDisconnectedToken);
- }));
- }
-
- protected void identifierBox_LoggingIn(object sender, OpenIdEventArgs e) {
- var consumer = CreateConsumer();
- consumer.AttachAuthorizationRequest(e.Request, "http://tempuri.org/IDataApi/GetName");
- }
-
- protected void identifierBox_LoggedIn(object sender, OpenIdEventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- State.FetchResponse = e.Response.GetExtension<FetchResponse>();
-
- var serviceDescription = new ServiceProviderDescription {
- TokenRequestEndpoint = new Uri(e.Response.Provider.Uri, "/access_token.ashx"),
- };
- var consumer = CreateConsumer();
- consumer.ServiceProvider = serviceDescription;
- AccessTokenResponse accessToken = await consumer.ProcessUserAuthorizationAsync(e.Response);
- if (accessToken != null) {
- this.MultiView1.SetActiveView(this.AuthorizationGiven);
-
- // At this point, the access token would be somehow associated with the user
- // account at the RP.
- ////Database.Associate(e.Response.ClaimedIdentifier, accessToken.AccessToken);
- } else {
- this.MultiView1.SetActiveView(this.AuthorizationDenied);
- }
-
- // Avoid the redirect
- e.Cancel = true;
- }));
- }
-
- protected void identifierBox_Failed(object sender, OpenIdEventArgs e) {
- this.MultiView1.SetActiveView(this.AuthenticationFailed);
- }
-
- private static WebConsumerOpenIdRelyingParty CreateConsumer() {
- var consumer = new WebConsumerOpenIdRelyingParty();
- consumer.ConsumerKey = new Uri(HttpContext.Current.Request.Url, HttpContext.Current.Request.ApplicationPath).AbsoluteUri;
- consumer.ConsumerSecret = "some crazy secret";
- return consumer;
- }
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.designer.cs
deleted file mode 100644
index a81b441..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginPlusOAuthSampleOP.aspx.designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class loginPlusOAuthSampleOP {
-
- /// <summary>
- /// MultiView1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.MultiView MultiView1;
-
- /// <summary>
- /// View1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View View1;
-
- /// <summary>
- /// identifierBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::DotNetOpenAuth.OpenId.RelyingParty.OpenIdTextBox identifierBox;
-
- /// <summary>
- /// RequiredFieldValidator1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
-
- /// <summary>
- /// beginButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Button beginButton;
-
- /// <summary>
- /// AuthorizationGiven control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View AuthorizationGiven;
-
- /// <summary>
- /// AuthorizationDenied control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View AuthorizationDenied;
-
- /// <summary>
- /// AuthenticationFailed control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.View AuthenticationFailed;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx b/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx
deleted file mode 100644
index 3e8d631..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx
+++ /dev/null
@@ -1,15 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="loginProgrammatic.aspx.cs" Async="true"
- Inherits="OpenIdRelyingPartyWebForms.loginProgrammatic" MasterPageFile="~/Site.Master" %>
-<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Main">
- <h2>Login Page </h2>
- <asp:Label ID="Label1" runat="server" Text="OpenID Login" />
- <asp:TextBox ID="openIdBox" runat="server" />
- <asp:Button ID="loginButton" runat="server" Text="Login" OnClick="loginButton_Click" />
- <asp:CustomValidator runat="server" ID="openidValidator" ErrorMessage="Invalid OpenID Identifier"
- ControlToValidate="openIdBox" EnableViewState="false" OnServerValidate="openidValidator_ServerValidate" />
- <br />
- <asp:Label ID="loginFailedLabel" runat="server" EnableViewState="False" Text="Login failed"
- Visible="False" />
- <asp:Label ID="loginCanceledLabel" runat="server" EnableViewState="False" Text="Login canceled"
- Visible="False" />
-</asp:Content> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.cs b/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.cs
deleted file mode 100644
index f47eae0..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.cs
+++ /dev/null
@@ -1,126 +0,0 @@
-namespace OpenIdRelyingPartyWebForms {
- using System;
- using System.Net;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using DotNetOpenAuth.Messaging;
- using DotNetOpenAuth.OpenId;
- using DotNetOpenAuth.OpenId.Extensions.SimpleRegistration;
- using DotNetOpenAuth.OpenId.RelyingParty;
-
- public partial class loginProgrammatic : System.Web.UI.Page {
- protected void openidValidator_ServerValidate(object source, ServerValidateEventArgs args) {
- // This catches common typos that result in an invalid OpenID Identifier.
- args.IsValid = Identifier.IsValid(args.Value);
- }
-
- protected void loginButton_Click(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- if (!this.Page.IsValid) {
- return; // don't login if custom validation failed.
- }
- try {
- using (OpenIdRelyingParty openid = this.createRelyingParty()) {
- IAuthenticationRequest request =
- await
- openid.CreateRequestAsync(
- this.openIdBox.Text, new HttpRequestWrapper(Request), Response.ClientDisconnectedToken);
-
- // This is where you would add any OpenID extensions you wanted
- // to include in the authentication request.
- request.AddExtension(
- new ClaimsRequest {
- Country = DemandLevel.Request,
- Email = DemandLevel.Request,
- Gender = DemandLevel.Require,
- PostalCode = DemandLevel.Require,
- TimeZone = DemandLevel.Require,
- });
-
- // Send your visitor to their Provider for authentication.
- await request.RedirectToProviderAsync(new HttpContextWrapper(Context), Response.ClientDisconnectedToken);
- }
- } catch (ProtocolException ex) {
- // The user probably entered an Identifier that
- // was not a valid OpenID endpoint.
- this.openidValidator.Text = ex.Message;
- this.openidValidator.IsValid = false;
- }
- }));
- }
-
- protected void Page_Load(object sender, EventArgs e) {
- this.RegisterAsyncTask(
- new PageAsyncTask(
- async ct => {
- this.openIdBox.Focus();
-
- // For debugging/testing, we allow remote clearing of all associations...
- // NOT a good idea on a production site.
- if (Request.QueryString["clearAssociations"] == "1") {
- Application.Remove("DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.ApplicationStore");
-
- // Force a redirect now to prevent the user from logging in while associations
- // are constantly being cleared.
- UriBuilder builder = new UriBuilder(Request.Url);
- builder.Query = null;
- Response.Redirect(builder.Uri.AbsoluteUri);
- }
-
- OpenIdRelyingParty openid = this.createRelyingParty();
- var response = await openid.GetResponseAsync(new HttpRequestWrapper(Request), Response.ClientDisconnectedToken);
- if (response != null) {
- switch (response.Status) {
- case AuthenticationStatus.Authenticated:
- // This is where you would look for any OpenID extension responses included
- // in the authentication assertion.
- var claimsResponse = response.GetExtension<ClaimsResponse>();
- State.ProfileFields = claimsResponse;
-
- // Store off the "friendly" username to display -- NOT for username lookup
- State.FriendlyLoginName = response.FriendlyIdentifierForDisplay;
-
- // Use FormsAuthentication to tell ASP.NET that the user is now logged in,
- // with the OpenID Claimed Identifier as their username.
- FormsAuthentication.RedirectFromLoginPage(response.ClaimedIdentifier, false);
- break;
- case AuthenticationStatus.Canceled:
- this.loginCanceledLabel.Visible = true;
- break;
- case AuthenticationStatus.Failed:
- this.loginFailedLabel.Visible = true;
- break;
-
- // We don't need to handle SetupRequired because we're not setting
- // IAuthenticationRequest.Mode to immediate mode.
- ////case AuthenticationStatus.SetupRequired:
- //// break;
- }
- }
- }));
- }
-
- private OpenIdRelyingParty createRelyingParty() {
- OpenIdRelyingParty openid = new OpenIdRelyingParty();
- int minsha, maxsha, minversion;
- if (int.TryParse(Request.QueryString["minsha"], out minsha)) {
- openid.SecuritySettings.MinimumHashBitLength = minsha;
- }
- if (int.TryParse(Request.QueryString["maxsha"], out maxsha)) {
- openid.SecuritySettings.MaximumHashBitLength = maxsha;
- }
- if (int.TryParse(Request.QueryString["minversion"], out minversion)) {
- switch (minversion) {
- case 1: openid.SecuritySettings.MinimumRequiredOpenIdVersion = ProtocolVersion.V10; break;
- case 2: openid.SecuritySettings.MinimumRequiredOpenIdVersion = ProtocolVersion.V20; break;
- default: throw new ArgumentOutOfRangeException("minversion");
- }
- }
- return openid;
- }
- }
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.designer.cs b/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.designer.cs
deleted file mode 100644
index d180211..0000000
--- a/samples/OpenIdRelyingPartyWebForms/loginProgrammatic.aspx.designer.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace OpenIdRelyingPartyWebForms {
-
-
- public partial class loginProgrammatic {
-
- /// <summary>
- /// Label1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label Label1;
-
- /// <summary>
- /// openIdBox control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.TextBox openIdBox;
-
- /// <summary>
- /// loginButton control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Button loginButton;
-
- /// <summary>
- /// openidValidator control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.CustomValidator openidValidator;
-
- /// <summary>
- /// loginFailedLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label loginFailedLabel;
-
- /// <summary>
- /// loginCanceledLabel control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label loginCanceledLabel;
- }
-}
diff --git a/samples/OpenIdRelyingPartyWebForms/logout.aspx b/samples/OpenIdRelyingPartyWebForms/logout.aspx
deleted file mode 100644
index 156f800..0000000
--- a/samples/OpenIdRelyingPartyWebForms/logout.aspx
+++ /dev/null
@@ -1,14 +0,0 @@
-<%@ Page Language="C#" %>
-<%@ Import Namespace="OpenIdRelyingPartyWebForms" %>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<script runat="server">
- protected void Page_Load(object sender, EventArgs e) {
- State.FriendlyLoginName = null;
- State.ProfileFields = null;
- System.Web.Security.FormsAuthentication.SignOut();
- DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingPartyControlBase.LogOff();
- Response.Redirect("~/");
- }
-</script>
-
diff --git a/samples/OpenIdRelyingPartyWebForms/packages.config b/samples/OpenIdRelyingPartyWebForms/packages.config
deleted file mode 100644
index ea83ad2..0000000
--- a/samples/OpenIdRelyingPartyWebForms/packages.config
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="log4net" version="2.0.2" targetFramework="net45" />
- <package id="Microsoft.Bcl" version="1.1.3" targetFramework="net45" />
- <package id="Microsoft.Bcl.Build" version="1.0.10" targetFramework="net45" />
- <package id="Microsoft.Net.Http" version="2.2.15" targetFramework="net45" />
-</packages> \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/styles.css b/samples/OpenIdRelyingPartyWebForms/styles.css
deleted file mode 100644
index 2e4d3db..0000000
--- a/samples/OpenIdRelyingPartyWebForms/styles.css
+++ /dev/null
@@ -1,10 +0,0 @@
-h2
-{
- font-style: italic;
-}
-
-body
-{
- font-family: Cambria, Arial, Times New Roman;
- font-size: 12pt;
-} \ No newline at end of file
diff --git a/samples/OpenIdRelyingPartyWebForms/xrds.aspx b/samples/OpenIdRelyingPartyWebForms/xrds.aspx
deleted file mode 100644
index 55b5e35..0000000
--- a/samples/OpenIdRelyingPartyWebForms/xrds.aspx
+++ /dev/null
@@ -1,29 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?>
-<%--
-This page is a required for relying party discovery per OpenID 2.0.
-It allows Providers to call back to the relying party site to confirm the
-identity that it is claiming in the realm and return_to URLs.
-This page should be pointed to by the 'realm' home page, which in this sample
-is default.aspx.
---%>
-<xrds:XRDS
- xmlns:xrds="xri://$xrds"
- xmlns:openid="http://openid.net/xmlns/1.0"
- xmlns="xri://$xrd*($v*2.0)">
- <XRD>
- <Service priority="1">
- <Type>http://specs.openid.net/auth/2.0/return_to</Type>
- <%-- Every page with an OpenID login should be listed here. --%>
- <URI priority="1"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/login.aspx"))%></URI>
- <URI priority="2"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/loginProgrammatic.aspx"))%></URI>
- <URI priority="3"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/ajaxlogin.aspx"))%></URI>
- <URI priority="4"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/NoIdentityOpenId.aspx"))%></URI>
- <URI priority="5"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/loginPlusOAuth.aspx"))%></URI>
- <URI priority="6"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/loginPlusOAuthSampleOP.aspx"))%></URI>
- </Service>
- <Service>
- <Type>http://specs.openid.net/extensions/ui/icon</Type>
- <URI><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/images/DotNetOpenAuth.png"))%></URI>
- </Service>
- </XRD>
-</xrds:XRDS>