+1-888-365-2779
Try Now
More in this section

Profiles

6 posts, 0 answered
  1. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    26 Apr 2010
    Link to this post
    Since 4.0 can be a Web Application, how does it handle profiles? Does it use a class similar to the Web Profile Builder?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Apr 2010
    Link to this post
    Hello Eric,

    We have our own Profile provider - Telerik.Sitefinity.Security.Data.OpenAccessProfileProvider. The profile properties are dynamic properties.

    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. rolls rolls
    rolls rolls avatar
    24 posts
    Registered:
    02 Nov 2002
    24 Aug 2010
    Link to this post
    Hello Ivan
    Is it possible to test an early version of profile api.

    Thanks
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Aug 2010
    Link to this post
    Hi rolls rolls,

    You can use the following methods of Telerik.Sitefinity.Security.ProfileManager


    •    Profile CreateProfile(User user) - creates a new profile.
    •    CreateProfile(User user, Guid profileID) - Creates a new profile with the specified identity.
    •    GetProfile(Guid profileID) - Gets a  profile.
    •    GetProfiles() - Gets a query for profiles.
    •    Delete(Profile item) - Deletes the specified profile
    There are also

    Telerik.Sitefinity.Security.SecuityManager - represents an intermediary between security objects and security data.

    Telerik.Sitefinity.Security.UserManager - represents an intermediary between users and membership data providers.


    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
  5. Stephen
    Stephen avatar
    5 posts
    Registered:
    05 Aug 2010
    25 Aug 2010
    Link to this post
    Hi there,

    I am considering moving my existing website to sitefinity and am trying to get a handle on how my existing functionality would port.

    In the majority of documentation i can find, anything to do with roles is in connection with CMS users/security.

    Is there any documentation regarding how to create roles for non-CMS users.

    My simple example would be 2 types of roles.

    - Anon (any visitor to the website)
    - RegisteredMember ( Visitors who have opened an account)

    I would like to be able to block access to a certain sub folder of the front end website to Anon users except Registered members.

    When an anon user attempts to access any page within the protected sub folder, they are redirected to a login page.  I understand about forms authentication and authorization to relatively advanced degree (having implemented custom solutions) so I understand the concepts required to make this work here in the usual asp.net way.

    Ideally I will use the existing sitefinity security framework by extending it and by utilising my own custom role provider (to authenticate users against a database and place them in the RegisteredMember role), however I am confused about the relationship / cross-over with CMS users/ roles and am extremely concerned about opening up my telerik  admin system to the wrong user.

    If you could point me to a decent tutorial or provide basic instructions on the steps to achieve the simple example above it would help me get started.

    Many thanks,

    Steve







  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Aug 2010
    Link to this post
    Hello Stephen,

    Please take a look at this post where I have provided several samples that illustrate how to create a user and add it to role.You can use SecurityManager to set permissions over roles programmatically
    The SecurityManager class has a method CreatePermission - Creates new permission.The method accepts three parameters

    string permissionSet - permission set name
    Guid objectId - secured object identifier.
    Guid principalId - principal identifier

    After creating a permissions for an object you need to call SaveChanges().

    If there are further questions, let me know.

    Regards,
    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
6 posts, 0 answered