Hello Chen Chuan,
That's a tough one, the default Login page is an embedded resource and is passed through a route handler before being rendered. The easiest approach would be to create a custom login page from Administration->BackendPages under the Sitefinity node, and mark its Require SSL property. You can then provide the ceritficate in IIS. There is a role for non-authenticated users - "Anonymous". Denying this role View permissions would raise error code "403 Forbidden" , which you can handle in the customErrors element
in you web.config to automatically redirect you to the login screen when a user who lacks the proper permissions is trying to access a certain page. Please refer to the sample below:
>alternatively it's possible to configure this in an application-wide settings class, i.e. Global.asax, where you could say:
sender, EventArgs e)
var currentPage = HttpContext.Current.Request.Url.ToString();
Exception ex = Server.GetLastError();
HttpException httpEx = ex
"You are not authorized to access this page"
I hope this suits your needs for the functionality you want to implement.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items