Hi Fellows, maybe some of you can help me solve this issue I cannot find workaround for (I've googled it up, trust me)
I need to implement security on my apps, with the following requirements:
- Login / logged in blocks must be inside a usercontrol, mainly cause I need to place it on different places on different pages
- I have a public area, that is, even not authenticated users have something to mess with.
- I need roles, and according to these roles, render the pages/ controls in different ways (for instance, if you're admin, you can delete stuff, if you're not, you can se stuff but deleting is disabled, but the container control is the same)
- I don't want to use the membership controls since that uses its own database, and that does not work for me, for i need to implement (for instance) referential integrity, so if user is deleted.... delete all the stuff he's guilty for. I also need my own control so I can squeeze it the way i like :)
- I need to be able to retrieve account's data at any time (for logging user's actions)
As an 'old' asp programmer, maybe I'm looking at this with old fashion glasses, but I think forms-auth is the way to go. What would u suggest? I cannot find an example where that thing is inside a usercontrol and afterwards using account's details to ensure conditional control over pages.
Help!
And thanks 2 u all in advance,
Mauro