Typically, my own authentication is asp.net against my own username and password in the database. For how I do this, I create a username and password dialog on the page and have a login button. During postback, I do something like:
if(SecurityHelper.LoginUser(txtUsername.Text, txtPassword.Text)) { FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true); }
Do with it all that you need to do is the same, check the username and password for what you want, you can even do it hard, if you want to buy, I would not recommend it. \ If in its actual action are used static methods of the formsauthentication class.
source share