Sharing Users, but not roles between Applications

F

Francis Reed

Hi

I'm currently developping a University portal that uses single sign on
between multiple applications, and I would like to store my users in one
application and share them with other applications while keeping the roles
unique per application. For our portal, all our users would go in an
application called "UniversityPortal", and roles would be created in each
course application. Here's an example illustrating our proposed structure.

Applications Roles

UniversityPortal Application (Administrators, Editors, ...)
Chemistry Application (Students, Teachers, ...)
Religion Application (Students, Teachers, ...)
Math Application (Students, Teachers, ...)

I've noticed that when I call SqlRoleProvider.AddUsersToRoles("francis",
Students") from within the Chemistry Application, and then from the Religion
Application new records get added to the Users table each with a unique user
ID. Why is this, and is there a way to prevent this duplication of user data?
Also does this mean if a user wants to change his password, does he have to
do it for every application? I would really appreciate any feedback or advice
that could help me out.

Cheers
Francis
 
D

Dominick Baier [DevelopMentor]

Hi,

the application name is used to scope roles and users - just a cheap workaround
for not having to force a db per application...

the default role provider enforces this scoping - i think you will have to
write your own role provider if you want cross application roles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top