summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-06-19 23:13:22 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-06-20 08:43:09 -0700
commit8eed943f4bd72d54d52ce9088ee968e354d4fd0a (patch)
tree491e655ce6ccb57b4870a54930a504b34618017e /samples
parent0d3741fe631df59b30a7808a29294167f45cad39 (diff)
downloadDotNetOpenAuth-8eed943f4bd72d54d52ce9088ee968e354d4fd0a.zip
DotNetOpenAuth-8eed943f4bd72d54d52ce9088ee968e354d4fd0a.tar.gz
DotNetOpenAuth-8eed943f4bd72d54d52ce9088ee968e354d4fd0a.tar.bz2
Added the AXFetchAsSregTransform OpenID behavior that allows RPs and OPs to deal strictly with Sreg and yet be compatible with all known formats of AX requests and responses.
Diffstat (limited to 'samples')
-rw-r--r--samples/OpenIdRelyingPartyMvc/Web.config3
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Web.config5
-rw-r--r--samples/OpenIdRelyingPartyWebForms/login.aspx2
3 files changed, 9 insertions, 1 deletions
diff --git a/samples/OpenIdRelyingPartyMvc/Web.config b/samples/OpenIdRelyingPartyMvc/Web.config
index ba97122..6ba31bf 100644
--- a/samples/OpenIdRelyingPartyMvc/Web.config
+++ b/samples/OpenIdRelyingPartyMvc/Web.config
@@ -47,6 +47,9 @@
<openid>
<relyingParty>
<security requireSsl="false" />
+ <!-- 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.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
</relyingParty>
</openid>
<messaging>
diff --git a/samples/OpenIdRelyingPartyWebForms/Web.config b/samples/OpenIdRelyingPartyWebForms/Web.config
index 2a13828..0ae3c6c 100644
--- a/samples/OpenIdRelyingPartyWebForms/Web.config
+++ b/samples/OpenIdRelyingPartyWebForms/Web.config
@@ -29,6 +29,11 @@
<openid>
<relyingParty>
<security requireSsl="false" />
+ <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.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
+ </behaviors>
<!-- Uncomment the following to activate the sample custom store. -->
<!--<store type="OpenIdRelyingPartyWebForms.CustomStore, OpenIdRelyingPartyWebForms" />-->
</relyingParty>
diff --git a/samples/OpenIdRelyingPartyWebForms/login.aspx b/samples/OpenIdRelyingPartyWebForms/login.aspx
index a0e04bd..281725c 100644
--- a/samples/OpenIdRelyingPartyWebForms/login.aspx
+++ b/samples/OpenIdRelyingPartyWebForms/login.aspx
@@ -5,7 +5,7 @@
<asp:Content runat="server" ContentPlaceHolderID="Main">
<h2>Login Page </h2>
<rp:OpenIdLogin ID="OpenIdLogin1" runat="server" CssClass="openid_login" RequestCountry="Request"
- RequestEmail="Request" RequestGender="Require" RequestPostalCode="Require" RequestTimeZone="Require"
+ RequestEmail="Require" RequestGender="Require" RequestPostalCode="Require" RequestTimeZone="Require"
RememberMeVisible="True" PolicyUrl="~/PrivacyPolicy.aspx" TabIndex="1"
OnLoggedIn="OpenIdLogin1_LoggedIn" OnLoggingIn="OpenIdLogin1_LoggingIn"
OnSetupRequired="OpenIdLogin1_SetupRequired" />