-
Hello guys, I came in with unique question. Is there any way an Orchard website can be secured with the password?
So, is there a chance I can secure Orchard website to display the content only if the user know the password? Any suggestions/thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You could implement your own authentication provider |
Beta Was this translation helpful? Give feedback.
-
@13Groszy you could achieve cookie based access restriction this way, create a zone, a widget and the javascript rule. So, the widget will be added to the zone, only when all rule conditions are met, in your case it is a simple check, if particular cookie exists. Another idea is to use workflows, I've prepared an example for you. It isn't perfect, but I just wanted to give you a clue. Recipe: First workflow is checking if cookie exists, if not it will return simple form to provide the password, otherwise it will redirect to content item. Second workflow is used as a target for the form. |
Beta Was this translation helpful? Give feedback.
-
oh, I forgot, this small method were used inside workflow script: |
Beta Was this translation helpful? Give feedback.
@13Groszy you could achieve cookie based access restriction this way, create a zone, a widget and the javascript rule.
So, the widget will be added to the zone, only when all rule conditions are met, in your case it is a simple check, if particular cookie exists.
Another idea is to use workflows, I've prepared an example for you. It isn't perfect, but I just wanted to give you a clue.
Recipe:
workflow.zip
First workflow is checking if cookie exists, if not it will return simple form to provide the password, otherwise it will redirect to content item. Second workflow is used as a target for the form.