Saturday, March 24, 2012

Suggestions for the arquitecture of the site

Hi,

I'm looking into putting together a site that would model a book where each user would be able to subscribe to the chapters. For example, a user could subscribe to chapters 1 and 5 and another user could subscribe to chapters 2 and 3.

Any suggestions on how to implement the security? Any sites out there with examples, tutorials, etc?

Any help is appreciated.

Thanks.Hi,

some information to start with:Authentication and Authorization.

I don't know about examples for what you're asking right now but I would suggest that you first model your database and then try to visualize things in a neat way.

Grz, Kris.
I'm familiar with the basics on authorization. Specifically forms authorization...

I'm looking for something more targeted at the fact of having several chapters... I know how to configure the application so that users have to sign-up and login in order to read the whole "book" - just haven't figured out how to do it by chapter...

Thanks for the reply.
You could use roles. I assume you have what users are authorized to view what chapters in a database...just assign these to whatever implementation of IPrincipal you're using when they log in and then check on the page (or use the web.config) for something like if(User.IsInRole("Chapter4")) ...

0 comments:

Post a Comment