summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--projecttemplates/WebFormsRelyingParty/Default.aspx4
-rw-r--r--projecttemplates/WebFormsRelyingParty/WebFormsRelyingParty.csproj1
-rw-r--r--projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js2
-rw-r--r--projecttemplates/WebFormsRelyingParty/xrds.aspx21
4 files changed, 27 insertions, 1 deletions
diff --git a/projecttemplates/WebFormsRelyingParty/Default.aspx b/projecttemplates/WebFormsRelyingParty/Default.aspx
index ef58a8a..e470320 100644
--- a/projecttemplates/WebFormsRelyingParty/Default.aspx
+++ b/projecttemplates/WebFormsRelyingParty/Default.aspx
@@ -1,6 +1,10 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebFormsRelyingParty._Default"
MasterPageFile="~/Site.Master" %>
+<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth" TagPrefix="dnoa" %>
+<asp:Content runat="server" ContentPlaceHolderID="head">
+ <dnoa:XrdsPublisher runat="server" XrdsUrl="~/xrds.aspx" XrdsAdvertisement="Both" />
+</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Body">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:HyperLink ID="HyperLink1" NavigateUrl="~/Members/Default.aspx" Text="Visit the Members Only area"
diff --git a/projecttemplates/WebFormsRelyingParty/WebFormsRelyingParty.csproj b/projecttemplates/WebFormsRelyingParty/WebFormsRelyingParty.csproj
index 3de8572..f4ec3c1 100644
--- a/projecttemplates/WebFormsRelyingParty/WebFormsRelyingParty.csproj
+++ b/projecttemplates/WebFormsRelyingParty/WebFormsRelyingParty.csproj
@@ -237,6 +237,7 @@
<Content Include="theme\ui.slider.css" />
<Content Include="theme\ui.tabs.css" />
<Content Include="theme\ui.theme.css" />
+ <Content Include="xrds.aspx" />
</ItemGroup>
<ItemGroup>
<None Include="Admin\CreateDatabase.sql" />
diff --git a/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js b/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
index cc06b56..50c7b28 100644
--- a/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
+++ b/projecttemplates/WebFormsRelyingParty/scripts/LoginLink.js
@@ -1,5 +1,5 @@
$(function() {
- var loginContent = 'loginframe.aspx';
+ var loginContent = 'LoginFrame.aspx';
var popupWindowName = 'openidlogin';
var popupWidth = 355;
var popupHeight = 270;
diff --git a/projecttemplates/WebFormsRelyingParty/xrds.aspx b/projecttemplates/WebFormsRelyingParty/xrds.aspx
new file mode 100644
index 0000000..acfb0e2
--- /dev/null
+++ b/projecttemplates/WebFormsRelyingParty/xrds.aspx
@@ -0,0 +1,21 @@
+<%@ 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 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>
+ <%-- TODO: add an entry here, with a higher priority than others, to allow unsolicited assertions. --%>
+
+ <%-- Every page with an OpenID login should be listed here. --%>
+ <URI priority="1"><%=new Uri(Request.Url, Response.ApplyAppPathModifier("~/LoginFrame.aspx"))%></URI>
+ </Service>
+ </XRD>
+</xrds:XRDS>