diff options
Diffstat (limited to 'samples/OpenIdWebRingSsoProvider')
-rw-r--r-- | samples/OpenIdWebRingSsoProvider/OpenIdWebRingSsoProvider.csproj | 4 | ||||
-rw-r--r-- | samples/OpenIdWebRingSsoProvider/user_xrds.aspx | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/samples/OpenIdWebRingSsoProvider/OpenIdWebRingSsoProvider.csproj b/samples/OpenIdWebRingSsoProvider/OpenIdWebRingSsoProvider.csproj index c8836d0..d7287c3 100644 --- a/samples/OpenIdWebRingSsoProvider/OpenIdWebRingSsoProvider.csproj +++ b/samples/OpenIdWebRingSsoProvider/OpenIdWebRingSsoProvider.csproj @@ -82,12 +82,14 @@ <Compile Include="Code\Util.cs" /> <Compile Include="Default.aspx.cs"> <DependentUpon>Default.aspx</DependentUpon> + <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Default.aspx.designer.cs"> <DependentUpon>Default.aspx</DependentUpon> </Compile> <Compile Include="Login.aspx.cs"> <DependentUpon>Login.aspx</DependentUpon> + <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Login.aspx.designer.cs"> <DependentUpon>Login.aspx</DependentUpon> @@ -95,12 +97,14 @@ <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Server.aspx.cs"> <DependentUpon>Server.aspx</DependentUpon> + <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Server.aspx.designer.cs"> <DependentUpon>Server.aspx</DependentUpon> </Compile> <Compile Include="user.aspx.cs"> <DependentUpon>user.aspx</DependentUpon> + <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="user.aspx.designer.cs"> <DependentUpon>user.aspx</DependentUpon> diff --git a/samples/OpenIdWebRingSsoProvider/user_xrds.aspx b/samples/OpenIdWebRingSsoProvider/user_xrds.aspx index 275e413..91ff33a 100644 --- a/samples/OpenIdWebRingSsoProvider/user_xrds.aspx +++ b/samples/OpenIdWebRingSsoProvider/user_xrds.aspx @@ -1,4 +1,5 @@ <%@ 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 @@ -13,12 +14,12 @@ This XRDS doc is discovered via the user.aspx page. <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(Request.Url, Response.ApplyAppPathModifier("~/server.aspx"))%></URI> + <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(Request.Url, Response.ApplyAppPathModifier("~/server.aspx"))%></URI> + <URI><%=new Uri(new HttpRequestWrapper(Request).GetPublicFacingUrl(), Response.ApplyAppPathModifier("~/server.aspx"))%></URI> </Service> </XRD> </xrds:XRDS> |