Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Authenticator.ValidateSSO();

            if (!Authenticator.CheckRole(UserRole.Administrator))
            {
                Redirector.RedirectToDefault();
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Authenticator.CheckLoggedIn())
            {
                Authenticator.ValidateSSO();
            }

            if (!Authenticator.CheckLoggedIn())
            {
                Redirector.RedirectToDefault();
            }
        }