Tuesday, March 27, 2012

Forms Authentication, CheckAccess

I'm implementing Forms authentication, but I have users stored in two different databases. The "LogonUser" method in my AuthenticationExtension gets an "authority". In that way I can authenticate the user in the correct database.

But... the problem is the CheckAccess method of my AuthorizationExtension. Is it in any way possible to reach the "authority" information from inside it? I need to grant some access to users of the first database and some other access to the users of the second database.

Could you unify the users list into one database using a view with a UNION ALL statement? This may solve your problem.

cheers,

Andrew

No comments:

Post a Comment