diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-27 20:19:16 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-27 20:19:16 -0700 |
commit | 1639f450f5c6e62b4746155de5cf1c1ffbd1286a (patch) | |
tree | 074da8a82f44b018f7a5c5db4247e3e3f7bc2b1d /samples/OpenIdRelyingPartyWebForms | |
parent | c0cc7af4c210103a2ef6f3144e307bcd130a77d1 (diff) | |
download | DotNetOpenAuth-1639f450f5c6e62b4746155de5cf1c1ffbd1286a.zip DotNetOpenAuth-1639f450f5c6e62b4746155de5cf1c1ffbd1286a.tar.gz DotNetOpenAuth-1639f450f5c6e62b4746155de5cf1c1ffbd1286a.tar.bz2 |
Fixed a couple of bugs in the RP sample's custom store.
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> |