More in this section

Forums / Developing with Sitefinity / Login User Controls

Login User Controls

4 posts, 0 answered
  1. Semps
    Semps avatar
    6 posts
    Registered:
    21 Mar 2010
    06 May 2010
    Link to this post
    Hi,

    Does anyone know of a good resource to learn about how to use the built in Login User Controls? I'd like to restrict access to some front end pages so that only users with a valid login/password can access them.

    I'm hoping there's a tutorial or a how-to guide out there that explains how to implement a login feature and give registered users access to certain pages.

    Cheers,
    Gavin.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    06 May 2010
    Link to this post
    Hello Semps,

    You could take a look at


    I'd like to restrict access to some front end pages so that only users with a valid login/password can access them.

    You should set Anonymous Access page property to Deny. By doing so if someone request a page, he/she will be redirected to the login form defined under forms node of your web.config

    <authentication mode="Forms">
                <forms name=".ASPNET" loginUrl="~/MyCustomLoginPage/login.aspx" protection="All" timeout="1440" path="/"/>
            </authentication>

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Semps
    Semps avatar
    6 posts
    Registered:
    21 Mar 2010
    07 May 2010
    Link to this post
    Thanks for the reply Ivan.

    I'm not familiar with ASP.NET membership and authentication etc, so it sounds like I need to read up on that first and learn how that stuff works. Would you agree? 

    I'm not sure how your Login User Controls fit into the whole picture but maybe I'll understand a bit after I read up on the ASP.NET membership info.

    I've just started reading this article which says (under the "Configuring Membership" section):

     "Later in this walkthrough you will put pages into a subdirectory that is protected. You must create the subdirectory now so that you can configure security for it later in the walkthrough."

    Given that Sitefinity stores it's "pages" in the database, how does the above statement work in the context of a Sitefinity project?

    Regards,
    Gavin.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 May 2010
    Link to this post
    Hi Semps,

    There are classes and interfaces that are responsible for setting and getting the permissions and specifying default rights for CRUD operations over an object - content item , page etc. Sitefinity Membership provider follows the implementation structure of the ASP.NET membership provider. We have overridden and extended some of the methods from the standard provider.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered