This repository was archived by the owner on Mar 20, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11<% @ Page Language= " C#" AutoEventWireup= " true" ContentType = " application/xrds+xml" %> <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <% @ Import Namespace= " DotNetOpenAuth.Messaging" %>
23<%--
34This page is a required as part of the service discovery phase of the openid
45protocol (step 1). It simply renders the xml for doing service discovery of
@@ -13,12 +14,12 @@ This XRDS doc is discovered via the user.aspx page.
1314 <Service priority =" 10" >
1415 <Type >http://specs.openid.net/auth/2.0/signon</Type >
1516 <Type >http://openid.net/extensions/sreg/1.1</Type >
16- <URI ><%= new Uri(Request .Url , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
17+ <URI ><%= new Uri(new HttpRequestWrapper( Request ).GetPublicFacingUrl() , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
1718 </Service >
1819 <Service priority =" 20" >
1920 <Type >http://openid.net/signon/1.0</Type >
2021 <Type >http://openid.net/extensions/sreg/1.1</Type >
21- <URI ><%= new Uri(Request .Url , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
22+ <URI ><%= new Uri(new HttpRequestWrapper( Request ).GetPublicFacingUrl() , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
2223 </Service >
2324 </XRD >
2425</xrds:XRDS >
Original file line number Diff line number Diff line change 11<% @ Page Language= " C#" AutoEventWireup= " true" ContentType = " application/xrds+xml" %> <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <% @ Import Namespace= " DotNetOpenAuth.Messaging" %>
23<%--
34This page is a required as part of the service discovery phase of the openid
45protocol (step 1). It simply renders the xml for doing service discovery of
@@ -13,12 +14,12 @@ This XRDS doc is discovered via the user.aspx page.
1314 <Service priority =" 10" >
1415 <Type >http://specs.openid.net/auth/2.0/signon</Type >
1516 <Type >http://openid.net/extensions/sreg/1.1</Type >
16- <URI ><%= new Uri(Request .Url , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
17+ <URI ><%= new Uri(new HttpRequestWrapper( Request ).GetPublicFacingUrl() , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
1718 </Service >
1819 <Service priority =" 20" >
1920 <Type >http://openid.net/signon/1.0</Type >
2021 <Type >http://openid.net/extensions/sreg/1.1</Type >
21- <URI ><%= new Uri(Request .Url , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
22+ <URI ><%= new Uri(new HttpRequestWrapper( Request ).GetPublicFacingUrl() , Response .ApplyAppPathModifier(" ~/server.aspx" ))%> </URI >
2223 </Service >
2324 </XRD >
2425</xrds:XRDS >
You can’t perform that action at this time.
0 commit comments