Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Complicated Custom Authentication/Authorization scheme question, Please HELP!

Reply
Thread Tools

Complicated Custom Authentication/Authorization scheme question, Please HELP!

 
 
Allawy
Guest
Posts: n/a
 
      08-18-2008
Hi,

I am writing a web application that needs to authenticate and
authorize users against an existing database of users, groups, and
permissions.
The difference between this and other typical applications is that the
SQL data store is not known at development or configuration time, i.e.
the user is presented with a list of sites he/she can sign on to, and
based on the selected application, the server name, database name, and
SQL login info is set. The list and its associated info is derived
from an XML file stored within a virtual directory.
I have already written a custom MembershipProvider that has a method:
ConnectToStore(Server As String, DBName As String, UserID As String,
Password As String)
which I call from the Login.Authenticate event handler on the login
page. This works great as it successfully authenticates the users as
expected.
My challenge is to implement the RoleProvider so that it uses a
similar scheme, i.e. I can set the connection string for the roles
data store before it attempts to connect to the database to get the
roles. It is not clear to me where I should call its version of the
ConnectToStore() method. I have already written and tested a version
of the provider with hard-coded values for testing, and it works. I
now need to plug it into the data store...

So how can I set the connection string for the RoleProvider module
before it kicks in? Any other suggestions as to how best to implement
this functionality?
NOTE: I must continue to use the XML file that contains the list of
applications and their connection info, i.e. I cannot store the
connectin strings in the web.config file.

Thanks in advance
Ali M.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VS.NET/class design/OO wizards: Please evaluate my scheme for abstracting the details of my applications and database ASP .Net 1 03-16-2007 09:10 AM
Windows Mobile 5 "Motorola Q" changing to custom color scheme Aaron ASP .Net Mobile 0 06-06-2006 11:21 AM
Re: need help with a complicated stored procedure please iixv Microsoft Certification 0 07-30-2005 04:34 PM
Declaring ports with a complicated array type Marius Vollmer VHDL 6 12-10-2003 07:48 PM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57