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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Usernames and PortalsUsernames and Portals
Previous
 
Next
New Post
11/17/2007 11:57 AM
 

I am seeing 2 disctinct scenarios with usernames and portals.

1) You want a user to sign up in a portal and immediately be able to use the same credentials in other portals.

2) You want to be able to use the same username in multiple portals and have each one be a spearate account.

What do people think about the following solution:

  • Create a table to group portals together i.e. PortalGroupID, PortalID
  • Modify all the usernames in those portals  to include the PportalGroupID such as [PORTALID]_UserName
  • Update the login control
    • If there is a PortalGroupID that has the current portal in it Prepend the token "_PortalGroupID_" to the username
    • If there isn't a portal group for the current portal, just prepend "PortalID_" to the username

I think this way, you will either have a unique username for a given portal or you will have a unique username for that group.  Obviously there are a numbe of adminstrative details that would need to happen, such as updating usernames when a portal is added or removed from a group....


Eric Shafer
Houston Web Designer
Click and Create

281-206-2631
 
New Post
11/18/2007 6:52 PM
 

The current system design technically allows for the FIRST scenario 

The userportals table already handles this sort of thing - although currently there is no
easy way in the core to assign a user to more than on portal

- access to it would require some custom hacking of the user rego modules.

As for the second scenario - because of the way DNN implements the asp.net membership provider - this is a more complicated task.

I do like the idea of potentially prepending info to the logon control
 - BUT it would take more than just changing the login control to make this work.

You would really need to modify the usercontroller and userinfo core providers to ensure that the right info is always
presented - plus change the rego module to allow for the same capabilities.

Westa

 
New Post
11/22/2007 11:50 AM
 

Here are the issues as I see them for this solution:

  1. Host accounts- DNN needs to see ifyou are logging in as a host which would be unrelated to a specific portal. Perhaps there should be a specific host login page. I.e. domainname.com/HostLogin.aspx.  That would solve this issue as the HOstLogin page would know what kind of look up to do.
  2. Methods in the membership provider that would need updates are:
    • UserLogin
    • GetUserByUserName
    • Add User
    • GetUserRolesByUsername
    • GetUsersByUsername- not quite sure what the difference between this and the
  3. UI issues- We have display name as a field, but the username gets used a lot.  DNN would need to modify this property so that it strips off the PortalID info.

Another route to take would be to extend the aspnet_Users table to include Portal Information.  This seems to have some merit since all the changes would be pretty well buried in the core, so 3rd party modules should still work.  Is there a reason noone has added this functionality to that table?


Eric Shafer
Houston Web Designer
Click and Create

281-206-2631
 
New Post
12/2/2007 4:08 PM
 

I didn't find it until just now, but there has been some design work on this already by the core team.

Check out this thread: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/110/postid/90859/scope/posts/Default.aspx
and this PDF: http://www.dotnetnuke.com/LinkClick.aspx?fileticket=ARbCQxPCk64%3D&tabid=478&mid=857


Eric Shafer
Houston Web Designer
Click and Create

281-206-2631
 
New Post
12/6/2007 8:37 PM
 

Eric Shafer wrote

I am seeing 2 disctinct scenarios with usernames and portals.

1) You want a user to sign up in a portal and immediately be able to use the same credentials in other portals.

I posted the code of a db trigger to automatically enable new or update users to access all portals at this link http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/143210/scope/posts/Default.aspx

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Usernames and PortalsUsernames and Portals


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