diff options
Diffstat (limited to 'samples/OpenIdRelyingPartyMvc')
-rw-r--r-- | samples/OpenIdRelyingPartyMvc/Global.asax.cs | 5 | ||||
-rw-r--r-- | samples/OpenIdRelyingPartyMvc/Web.config | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/samples/OpenIdRelyingPartyMvc/Global.asax.cs b/samples/OpenIdRelyingPartyMvc/Global.asax.cs index a43b734..d57a13f 100644 --- a/samples/OpenIdRelyingPartyMvc/Global.asax.cs +++ b/samples/OpenIdRelyingPartyMvc/Global.asax.cs @@ -17,6 +17,11 @@ "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = string.Empty }); // Parameter defaults + + routes.MapRoute( + "Root", + string.Empty, + new { controller = "Home", action = "Index", id = string.Empty }); } protected void Application_Start(object sender, EventArgs e) { diff --git a/samples/OpenIdRelyingPartyMvc/Web.config b/samples/OpenIdRelyingPartyMvc/Web.config index 20441eb..8becaf6 100644 --- a/samples/OpenIdRelyingPartyMvc/Web.config +++ b/samples/OpenIdRelyingPartyMvc/Web.config @@ -47,6 +47,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> </relyingParty> </openid> <messaging> |