I have written a login page, in which a Sitecore virtual user is logged in. After the successful login he is directed to the start page, which inherits from Sitecore.sitecore.admin.AdminPage. That way I make sure that the pages are only accessible if the user is logged in as a Sitecore (Virtual) User.
The problem is that the logged in Virual User cannot see any content until I assign to him the sitecore/developer role, which is not the way to go I would guess. I tried with assigning a role which grants access to the content node that I want him to see, but that doesn't work. He gets redirected back to the login page.
What am I missing?
EDIT: Here's the code of my secured page:
public partial class MainPage : Sitecore.sitecore.admin.AdminPage
{
Sitecore.Security.Accounts.User currentUser = Sitecore.Context.User;
protected override void OnInit(EventArgs e)
{
base.CheckSecurity(true);
base.OnInit(e);
}
private void Page_Load(object sender, System.EventArgs e)
{
...
}
...
}