Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Login - Portal RedirectionLogin - Portal Redirection
Previous
 
Next
New Post
9/16/2014 10:37 AM
 

Hi,

I'm having some trouble figuring out if DNN has the capability to redirect a user that is being validated to a URL on a different portal within the same site.

For example, say I have PortalA and PortalB, and a User1 that has only access to PortalB. However, I do want to allow for the user to attempt to use the Login page for PortalA, and some logic to determine that the user needs to be directed to PortalB during or after the login process. So, if User1 visits the site PortalA.com and attempts to login, I want User1 to end up being validated and logged in to PortalB, and landing on the home page for PortalB.

Looking at the PortalSettings object, I can override the PortalId and the PortalName that goes into the UserController.ValidateUser and UserController.UserLogin methods, but that does not help with any redirection across two portals. I also took a look at the changing HomeTabId variable that is used for obtaining the RedirectURL and it seems that changing that to an Id that is for the Home Page does not work - because the HomeTabId is outside of the current portal, Globals.NavigateURL() does not give me the URL to the correct portal I want to be redirected to.

Additionally, there is a need to be able to determine on either PortalA or PortalB's login page, if the user logging in has access to both portals. If they do have access to both portals, then the user would be able to select (from a list, drop down, etc.) which Portal they are wanting to go to. From the selection, the user could then continue on to PortalA or PortalB FROM either PortalA or PortalB's login page as needed. I imagine that if the prior requirements can be solved, then this should be easily solved.

Just in case, there are business rules that dictate that we do need separate portals. Each portal has portal specific functionality, business logic engines, and navigation menus.

If anyone has any advice or foresight into this situation, it would be greatly appreciated!

 
New Post
9/22/2014 4:57 PM
 

This won't really fix your problems but some background info. 

Out of the box, DNN tries to separate each portal from one another (consider the use cases of hosts having multiple portals, all of which are unknown to one another). It is possible to setup Site Groups (like we do in our Content product) which allows sites to be shared (for example, portal A and portal B can share content and user bases). There is also the fact that if a user exists in Portal A and then registered for Portal B using the same username and password combination, DNN will indeed use a single user account for this (thus the user is shared between the two portals). 

As for redirecting upon authentication, you have to ensure the domains are the same for starters and you likely would need to write something custom that meets the business rules you outlined. 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
9/22/2014 6:43 PM
 
Chris, thanks for the response.

I did eventually figure out a custom workaround.

I ended up writing an intermediary page with a module that handles the page redirection as needed. I'm setting up the information in the session on that page, after reading a login token stored in the database while sending over the token ID and username over query string. The user never sees that page, and the token is alive for a short duration that it shouldn't be something hijacked. The intermediate page also handles redirecting to the login page as needed if the user's token has expired or if they have reached the page by some means, since the URL is not openly visible.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Login - Portal RedirectionLogin - Portal Redirection


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out