davidjrh / dnn.azureadprovider

The DNN Azure Active Directory Provider is an Authentication provider for DNN Platform (formerly DotNetNuke) that uses Azure Active Directory OAuth2 authentication to authenticate users.
MIT License
35 stars 21 forks source link

login to second portal gives error #24

Open m-dewkalie opened 4 years ago

m-dewkalie commented 4 years ago

Hi, Love your plugin and we really needed this plugin for our websites. We hope you can help us with the following issue. We have one DNN installation in which we host different portals. When a user is logged into one webportal, this is without problems. When the same user tries to log to a second webportal using the same credentials, this gives the following errormessage: "This username is already in use. Please register with another username." So the user can only login to one portal, logout, and login to the other portal. And not login to two or more portals the same time. DNN 9.04.00 and Azure Active Directory Provider 3.1.0 Hope you can fix this!

davidjrh commented 4 years ago

Since DNN doesn't allow a user to be registered twice in the same instance because shares the Membership tables, there is no easy way to solve this.

A workaround could be to add a record on the UserPortals table for both portals, but not sure how we could automatically add that record based on what? Imagine: this user can login on portal 0 and 1, this other on 0 and 2, and this one on 0, 1 and 2.

Thoughts?

swalker1595 commented 4 years ago

Another way to solve this would be to put all Portals in the same Site Group. And then only login to the “Main” portal and you will be also logged into all other portals.

davidjrh commented 4 years ago

I'm wondering if the new "Use Global Settings" on v4.0 helps at least on logging into all the portals under the same DNN instance.