summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdWebRingSsoRelyingParty/Default.aspx.cs
blob: 9e6009e2c54cfe8f02d60e3eda4fc2e5efec339e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace OpenIdWebRingSsoRelyingParty {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using System.Web.UI;
	using System.Web.UI.WebControls;

	public partial class _Default : System.Web.UI.Page {
		protected void Page_Load(object sender, EventArgs e) {
			if (Array.IndexOf(Request.AcceptTypes, "application/xrds+xml") >= 0) {
				Server.Transfer("xrds.aspx");
			} else if (!User.Identity.IsAuthenticated) {
				Response.Redirect("Login.aspx");
			}
		}
	}
}