forked from DotNetOpenAuth/DotNetOpenAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_xrds.aspx
25 lines (25 loc) · 1.09 KB
/
user_xrds.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<%@ Page Language="C#" AutoEventWireup="true" ContentType="application/xrds+xml" %><?xml version="1.0" encoding="UTF-8"?>
<%@ Import Namespace="DotNetOpenAuth.Messaging" %>
<%--
This page is a required as part of the service discovery phase of the openid
protocol (step 1). It simply renders the xml for doing service discovery of
server.aspx using the xrds mechanism.
This XRDS doc is discovered via the user.aspx page.
--%>
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns:openid="http://openid.net/xmlns/1.0"
xmlns="xri://$xrd*($v*2.0)">
<XRD>
<Service priority="10">
<Type>http://specs.openid.net/auth/2.0/signon</Type>
<Type>http://openid.net/extensions/sreg/1.1</Type>
<URI><%=new Uri(new HttpRequestWrapper(Request).GetPublicFacingUrl(), Response.ApplyAppPathModifier("~/server.aspx"))%></URI>
</Service>
<Service priority="20">
<Type>http://openid.net/signon/1.0</Type>
<Type>http://openid.net/extensions/sreg/1.1</Type>
<URI><%=new Uri(new HttpRequestWrapper(Request).GetPublicFacingUrl(), Response.ApplyAppPathModifier("~/server.aspx"))%></URI>
</Service>
</XRD>
</xrds:XRDS>