Click to See Complete Forum and Search --> : Form Authentication


Zerocool
10-23-2001, 06:13 AM
Hi all
I need some information on how form authentication can work
without having to have the usernames and passwords in web.config file or the
users.xml file. I have all the usernames and passwords in the database along
with the roles that the user has. Hope my query was clear enough
Thank u in advance
Keval

Rob Teixeira
10-23-2001, 03:35 PM
I have to admit to not being as savvy in ASP.NET as I'd like, since I've
been investigating other parts of .NET more heavily.

The one sample in the MSDN that I did find, dynamically added users to the
XML file.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguidnf/html/cpconloginaspxfile.asp

So, basically, you could add users from the database to the XML file as well.
However, I know where you're going with this, and I'd like to think there's
a better way as well. From my experience with some of the other bits of the
Framework, most of the XML configurations are simply defaults that get loaded
into objects at runtime anyway. So, chances are that somewhere, you can do
similar things programatically. ASP.NET also exposes quite a few events that
can be handled by scripting as well, so that might be another place to look.

-Rob

"Zerocool" <keval@india.photoninfotech.com> wrote:
>Hi all
> I need some information on how form authentication can work
>without having to have the usernames and passwords in web.config file or
the
>users.xml file. I have all the usernames and passwords in the database along
>with the roles that the user has. Hope my query was clear enough
>Thank u in advance
>Keval
>
>
>

Taiwo
10-24-2001, 04:15 AM
Following is one of the best overview that I've found about ASP.NET
security:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/
authaspdotnet.asp?frame=true

Among other topics, it includes very good information on how to implement
Forms Authentication. If you still need more help, just reply back to the
group.

---------------------------------------------------------------
This Posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation.
All rights reserved.

Taiwo Ayedun

"Zerocool" <keval@india.photoninfotech.com> wrote in message
news:3bd561dc@news.devx.com...
> Hi all
> I need some information on how form authentication can work
> without having to have the usernames and passwords in web.config file or
the
> users.xml file. I have all the usernames and passwords in the database
along
> with the roles that the user has. Hope my query was clear enough
> Thank u in advance
> Keval
>
>
>