diff options
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms')
-rw-r--r-- | samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs | 11 | ||||
-rw-r--r-- | samples/OpenIdRelyingPartyWebForms/Web.config | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs index 12008ca..3ab6292 100644 --- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs +++ b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs @@ -1,8 +1,15 @@ -namespace OpenIdRelyingPartyWebForms.Code { +//----------------------------------------------------------------------- +// <copyright file="CustomStore.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. 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; @@ -94,7 +101,7 @@ yield break; } - foreach (CustomStoreDataSet.CryptoKeyRow row in view) { + 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)); } } diff --git a/samples/OpenIdRelyingPartyWebForms/Web.config b/samples/OpenIdRelyingPartyWebForms/Web.config index 1f1842b..485f8dc 100644 --- a/samples/OpenIdRelyingPartyWebForms/Web.config +++ b/samples/OpenIdRelyingPartyWebForms/Web.config @@ -41,7 +41,7 @@ <!--<add type="DotNetOpenAuth.OpenId.Behaviors.GsaIcamProfile, DotNetOpenAuth" />--> </behaviors> <!-- Uncomment the following to activate the sample custom store. --> - <!--<store type="OpenIdRelyingPartyWebForms.CustomStore, OpenIdRelyingPartyWebForms" />--> + <!--<store type="OpenIdRelyingPartyWebForms.Code.CustomStore, OpenIdRelyingPartyWebForms" />--> </relyingParty> </openid> <messaging> |