This project is read-only.

custom authentication module

Topics: Customizing Orchard
Aug 30, 2013 at 1:09 PM
i made a simple module in orchard pragmatically. Now i want that without login no one can access this page. using Simple admin content its easy to implement but in my costume module how i can do .. like MVC [authorize] attribute is there any way?
Aug 30, 2013 at 8:53 PM
Create your own permission and check that at the beginning of your action. There are lots of examples of that in the core modules.
Sep 3, 2013 at 10:47 AM
Can you refer me any useable link.
Sep 3, 2013 at 4:24 PM
Open any Permissions.cs file in the solution, then find usage of one of the permissions it defines.