User Login ans Special roles to access pages

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/2/2012 3:29:56 PM
Gravatar
Total Posts 8

User Login ans Special roles to access pages

I am looking into using MojoPortal to rebuild my company's website.  In the current website we have a members only section that allows users to login to get to member only content which is seperate from public content.  (Content on the website is controlled by a seperate system.)  The member logs in and can only access member information for their facility and within their facility only content pertaining to their job. 

Can a user control be used to do this?  I am thinking that after the user logins in with the MojoPortal login to redirect to a control that would determine what access the user has but I am not sure how to futher control the access. For example: if a CFO logs in they can see all pages dealing with their company and all public content but if a report manage logs in they can only see the reports and public content. 

 

Thanks

Nicole

 

4/2/2012 4:16:37 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: User Login ans Special roles to access pages

Are you familiar with how mojoPortal Roles secure site content? If I'm understanding correctly, what I think I would do in your position is establish a security hierarchy based on role, secure the necessary areas of the site, and grant an appropriate role to each user based on their job function.

It sounds like perhaps you also want the role assignment to be made automatically? If your users are logging in via LDAP/Active Directory, you might be able to query the LDAP/AD database during a User Registered Event Handler, and automatically assign the appropriate role to the new user based on job code or some other field.

Jamie

4/3/2012 8:21:08 AM
Gravatar
Total Posts 8

Re: User Login ans Special roles to access pages

I do understand how the roles work in MojoPortal.  I think there are two many variations in our situation to use the roles within MojoPortal.  For internal users, the roles will work.  You can either access sections of the site or you cannot. 

 

For external members we need to limit them to certain pages based on where they work and what their job funtion is.  We have an internal application that assignes member access rights.  So people in organization A can see very different pages.  And a person from organization B cannot see information from organization A.  We sperate out what can be seen either by what is in the database (using queries to populate the page) or what folders the user can see. 

4/3/2012 10:29:48 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: User Login ans Special roles to access pages

We have an internal application that assignes member access rights.

This is what I was thinking would be duplicated in a User Registered Event Handler. But rather than assigning access rights, it would use the rules its following to assign them to a mojoPortal role that already defines the portions of the site they can access.

It wouldn't be easy to set up or maintain a role for every combination, but I'm sure it could be done. After all, roles can not only restrict members to viewing certain pages, they can even restrict all the way down to the individual features on a page. But if you really feel you need some kind of access controls beyond what mojoPortal offers, I don't have any other recommendations.

Jamie

You must sign in to post in the forums. This thread is closed to new posts.