I need to automatically create institutions based on attributes in SAML

Bug #1771776 reported by bobthevirus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

I have a site with hundreds of institutions. I have to duplicate institutions from the SAML provider to Mahara. To do this currently involves manually adding each new institution to Mahara. Instead, I'd like to be able to configure the No Institution SAML authentication to automatically create institutions and assign users to them based on SAML attributes.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

This sounds to me like you'd need to use web services to create new institutions.

Changed in mahara:
importance: Undecided → Wishlist
Revision history for this message
bobthevirus (bobthevirus-gmail) wrote :

Yeah, I'm going to use web services for now. I thought this might be a useful feature for others too.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

You are welcome to propose the web services function for inclusion into Mahara core, either as a patch here, or (preferred esp. if you want to contribute more) directly into our code review system https://reviews.mahara.org See https://wiki.mahara.org/wiki/Developer_Area/Contributing_Code

Revision history for this message
Robert Lyon (robertl-9) wrote :

If one were to add the ability to create institution on user authorise they would need to take note of:

1) It should be against the site's 'mahara' (called "No institution") institution
2) It should be an option that one can choose when setting up the auth instance
3) Could add the check in request_user_authorise() just after defining $institutionname
 where if $instituionname doesn't exist and we allow create of institution we can create one now

Changed in mahara:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.