Profiles

Posted by Community Admin on 03-Aug-2018 14:26

Profiles

All Replies

Posted by Community Admin on 26-Apr-2010 00:00

Since 4.0 can be a Web Application, how does it handle profiles? Does it use a class similar to the Web Profile Builder?

Posted by Community Admin on 26-Apr-2010 00:00

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.

Posted by Community Admin on 24-Aug-2010 00:00

Hello Ivan

Is it possible to test an early version of profile api.

Thanks

Posted by Community Admin on 24-Aug-2010 00:00

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

Posted by Community Admin on 25-Aug-2010 00:00

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







Posted by Community Admin on 25-Aug-2010 00:00

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

This thread is closed