Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow SAML username provider plugins #6411
Allows the ability for an external python module to handle the mapping between a SAML auth response attribute to the localpart of a new mxid.
Done so we don't have to keep adding options to Synapse for tiny regex changes :)
If a module is provided, Synapse will use it's implementation of
The config option
/me grumbles at github for eating my first attempt at this comment
Looks like a great start! A few nits above. More generally though:
We need a way to map the displayName. I suggest the mapper return a dict (which will allow for easier addition of new features in the future: avatar url anyone?)
The day is probably not far off where the mapping for mxid and displayName will require more than a single saml attribute. Easier to pass the entire saml2_auth object into the module (and then the lookups from _mxid_source_attr (?) and displayName can move into the default mapper).
…rch_redacted_events * 'develop' of github.com:matrix-org/synapse: (100 commits) Move get_state methods into FederationHandler (#6503) Allow SAML username provider plugins (#6411) Fix race which caused deleted devices to reappear (#6514) Refactor get_events_from_store_or_dest to return a dict (#6501) Remove redundant code from event authorisation implementation. (#6502) Newsfile Silence mypy errors for files outside those specified Newsfile Phone home stats DB reporting should not assume a single DB. Update comment Drop unused index Convert _censor_redactions to async since it awaits on coroutines Only start censor background job after indices are created Newsfile Newsfile Fix make_deferred_yieldable to work with coroutines Newsfile Fix support for SQLite 3.7. Better errors regarding changing avatar_url (#6497) 1.7.0rc1 ...