Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composite C1 - Membership Provider - Simple Registration and Login

I am developing my first application using the Composite C1 CMS as the core system. I am currently working my way through the documentation and learning about data structuring, etc. I see that there is a paid Extranet package which can be purchased but I would prefer to develop my own Membership system within the site.

What would be the best way for me to allow users to register on the front end of my Composite C1 website and then to allow them access to a password protected area once they have registered and logged in?

I am a fairly experienced .net developer but Composite C1 is very new to me (at first impressions I like it a lot!)

Thanks

like image 325
TGuimond Avatar asked May 25 '12 13:05

TGuimond


1 Answers

Like the commercial Extranet package you can write a RenderingResponseHandler plugin and register it it the ~/App_Data/Composite/Composite.config file.

Check the guide "How can I validate users before a page or media file is being served?"

RenderingResponseHandler plugins are tasked with approving page and media requests and they can either let the request pass or redirect the request to a new URL.

You would need to take care of the user data base and login page yourself. Also some mechanism that would allow a user of the cms to mark pages as protected/public might make sense.

There is relevant pointers on the CodePlex thread "Restricting access to MediaArchive files"

like image 54
mawtex Avatar answered Oct 25 '22 13:10

mawtex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!