Re: Help in forms authentication

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 11/23/05


Date: Wed, 23 Nov 2005 06:25:57 -0800

Hello JessyEzzy,

you could use the <credential> element (a child of <forms>)

in this element you can put usernames and passwords (you should use hashed
passwords)

also look at FormsAuthentication.HashPasswordForStoringInConfigFile and FormsAuthentication.Authenticate

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> I am using forms authentication against a database
>
> <authentication mode="Forms">
> <forms name="MyFormsAuthentication" loginUrl="login.aspx" path="/"
> protection="All" timeout="20" />
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
> I have a requirment for a type of login where the account info, will
> be hard coded and don't come from the database, and that specific
> account will have access to only one page and won't be able to access
> any other page, how can I implement that?
>
> Thanks in advance.
>



Relevant Pages

  • Re: How to Change MinRequiredNonAlphanumericCharacters in AspNetSq
    ... Dominick Baier - DevelopMentor ... The app is being deployed to a shared server, so I cannot do anything to the machine.config. ... My users will resist using extremely strong passwords. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET 2.0 forms auth: default user
    ... passwords are not encrypted but hashed - you can call the CreateUser SPROC as part of your DB setup. ... Dominick Baier - DevelopMentor ... I would like to deploy a web app which uses forms authentication. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to Change MinRequiredNonAlphanumericCharacters in AspNetSq
    ... this does NOT require a custom provider - just configure the existing one appropriately. ... Dominick Baier - DevelopMentor ... My users will resist using extremely strong passwords. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • problems storing passwords
    ... business, w Win2000) the account info will not store my ... passwords, even when i click the "remember password" ...
    (microsoft.public.office.setup)
  • password problems
    ... business, w Win2000) the account info will not store my ... passwords, even when i click the "remember password" ...
    (microsoft.public.office.setup)