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

Forums / Security / Role management and front end login

Role management and front end login

3 posts, 0 answered
  1. citytech team1
    citytech team1 avatar
    16 posts
    Registered:
    17 Sep 2009
    24 May 2010
    Link to this post
    Hello,
    This is Our second Sitefinity project, I am thankful to sitefinity support, You guys has help me several times, and make a new framework easer to me. Now I am facing some issues in my current project. Please help.

    We are using Sitefinity 3_7_1990 standard, I am facing problem with role management. Our client's requirement
    is
     There will be a menu link from where user will navigate automatically to login page he/she is not login .for login user content of the page will open according to user personal data.[ User is basically Group here, say "Operator" where many people can login with same uid/pwd] And all these will happed in Front end like normal website.

    The problems i face 
    1) I am using Sitefinity Login control, I am using "Login.DestinationPageUrl" property to navigate to after login landing page. Now problem is say i have a menu link name "Member Area" if i click there system will check if i am login or not, if i am login then "Member Area" will open else Navigate to  Login Page. I am using "SiteMenu", How can i do this, please note for every page login is not required. 
    2) How can i Add Logout menu link after login?
    3) How can i List data [ in my case this is document, "Operator" can access only Operator's of document, "Developer" can access only "Developer"'s document, this is nothing but role or access level] how can i do this in sitefinity? I can guess i might need to add some custom module for this job. Please give me some links for module development.

    4) If I want to make login in member "Area page" It is possible make controls visible and invisible , say when user not a login user , login box will only display on this page , other controls will be invisible, after login login box will be invisible and other controls will be visible. Please not i have lot's of sitefinity controls on that page. [ I just want to <asp:Panel visible =true ,or <asp:Panel visible =false like thing as we do in normal asp.net application.

    Thanks and Regards

    Tanmay


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 May 2010
    Link to this post
    Hello citytech team1,

    1) I am using Sitefinity Login control, I am using "Login.DestinationPageUrl" property to navigate to after login landing page. Now problem is say i have a menu link name "Member Area" if i click there system will check if i am login or not, if i am login then "Member Area" will open else Navigate to  Login Page. I am using "SiteMenu", How can i do this, please note for every page login is not required.

    Access the RadMenuItem in ItemDataBound event of your navigation control. Check whether the current user is authenticated - Page.User.Identity.IsAuthenticated, if so you could get his/her roles Telerik.Security.UserManager.GetCurrentUserRoles and check some other permissions. So, if the user is authenticated set NavigateUrl of the RadMenuItem to your Member Area, otherwise redirect to your login form.

    2) How can i Add Logout menu link after login?

    You could use LoginStatus or LoginView controls. Another option is creating a link and on its click event you call FormsAuthentication.SignOut Method

    3) How can i List data [ in my case this is document, "Operator" can access only Operator's of document, "Developer" can access only "Developer"'s document, this is nothing but role or access level] how can i do this in sitefinity? I can guess i might need to add some custom module for this job. Please give me some links for module development.

    You could create a library for each role and then set permissions per role


    4) If I want to make login in member "Area page" It is possible make controls visible and invisible , say when user not a login user , login box will only display on this page , other controls will be invisible, after login login box will be invisible and other controls will be visible. Please not i have lot's of sitefinity controls on that page. [ I just want to <asp:Panel visible =true ,or <asp:Panel visible =false like thing as we do in normal asp.net application.

    Take a look at Roles Selector and hiding control based on user's roles

    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. citytech team1
    citytech team1 avatar
    16 posts
    Registered:
    17 Sep 2009
    25 May 2010
    Link to this post
    Hello Ivan Dimitrov,

    Thank you very much for response , I hope it will help me a lot, I am now working on this.
    Anyway thanks again
    Tanmay
Register for webinar
3 posts, 0 answered