More in this section

Forums / Developing with Sitefinity / using sitefinity security to secure pages to only registered users

using sitefinity security to secure pages to only registered users

7 posts, 0 answered
  1. Ric
    Ric avatar
    7 posts
    Registered:
    15 Nov 2008
    21 Nov 2008
    Link to this post
    We would like to leverage site finity security to restrict certain pages on our web site to only registered users. 

    The idea would be 1) users complete a simple form (name, company name, email, phone, country)  2) we create a login id and pw behind the scenes that they don't see 3) we set a cookie on their system so once they register they have access to all secure material without logging in.

    Is that doable?  Has anyone done that or have the sample code we need to use?

    Thanks,

    Ric
  2. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    21 Nov 2008
    Link to this post
    Hi Ric,

    Thanks for contacting us.

    To give you more info on security, our CMS is using the same Membership, Roles and Profile classes from the .NET Framework. Our CMS is also using the login controls from Visual Studio, such as the Create User Wizard and Login control, and these tools were wrapped into User Controls and uploaded to Sitefinity. To update them, simply navigate to the ~\Sitefinity\UserControls\Login directory and change the controls accordingly. For more info on using the ASP.NET login controls, please read this MSDN article.

    Sitefinity has all of these features out of the box and the tools for this are in the login section of the toolbox, which is accessible when you create or edit a page. In the CMS, there is an administration section where you can create users. Once you create this info, there is a profile edit control in the login section of the toolbox, so users can login and edit their profile from there. Cookies are also made out of the box, so no additional coding is needed.

    I hope that I have clearly answered your questions. Feel free to contact us if you need further assistance.

    Best wishes,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Ric
    Ric avatar
    7 posts
    Registered:
    15 Nov 2008
    21 Nov 2008
    Link to this post
    Thanks for the response.  But I can't tell from the response if my first question was answered.  Is this doable?  I can read all the stuff you suggested, but I'd like to know if I can do what I was thinking 1) have users register 2) set up a user ID and Password behind the scenes and not give it to them but 3) set a cookie on their computer so they can access the secure pages without being prompted for a user id or pw.

    I have used Sitefinity security to secure pages, but as far as I can get still requires users to sign in each time <ugh> which won't work.

    Cheers,

    Ric
  4. John
    John avatar
    32 posts
    Registered:
    08 Oct 2008
    21 Nov 2008
    Link to this post
    Hi Ric,

    Users must create a user name and password with the Create a User Wizard control, so I don't think it's possible to create a user name and password different that what Joe said. This article from Scott Guthrie will tell you more about that control:

    http://weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx

    So, 1 and 3 are doable. The only way you can make user names and passwords behind the scenes is to make them yourself manually, then send them to the user, and have the user sign in and edit their profile.

    ~John
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    25 Nov 2008
    Link to this post
    Hello John,

    Thank you for taking part in the discussion, hopefully the provided information would be enough for Ric.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Jason
    Jason avatar
    9 posts
    Registered:
    23 Mar 2009
    20 Aug 2009
    Link to this post

    I had the same question of how can a user edit his or her profile without having access to admin CMS.  Is there a way to do this without creating one from scratch with the toolbox items?  I want to use the “myprofile” page in sitefinity for users to edit their information AND picture.  You said “Once you create this info, there is a profile edit control in the login section of the toolbox, so users can login and edit their profile from there.” But I do not see this control in the Visual Studio 2008 tool box.  Am I missing something?  Can you please clarify.

     

    Also, where are the pictures stored from the employee profiles.  I want to create a grid with all employee names and pictures.

  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Aug 2009
    Link to this post
    Hi Adisa,

    The post refers to Sitefinity's toolbox section, not to VS. However the control there - Manage Profile, has a very basic interface and I suggest that you should create a custom one depending on your custom requirements.

    Profile images can be uploaded to a project's folder or under Images and Documents module. All items uploaded through Images and Documents module are stored in the database. You can take a look at the following demo which illustrates simple databinding of the RadGrid control.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
7 posts, 0 answered