نود أن نكون قادرين على مزامنة بعض المجموعات في Discourse مع مجموعات OIDC التي لدينا. وجدنا أن هناك طلب سحب (PR) قدم هذه الوظيفة، ولكنه لم يتم أخذه في الاعتبار بشكل أكبر:
main ← jalview:openid_connect_groups_maps
closed 02:07AM - 29 Nov 25 UTC
This PR allows mapping of OpenID Connect group membership to Discourse Group mem… bership.
Of mapped Discourse groups, membership is (optionally) removed if the corresponding OpenID Connect group membership is not present.
This is a feature requested several times
(e.g.
https://meta.discourse.org/t/mapping-groups-or-roles-using-keycloak/304277
https://meta.discourse.org/t/does-sso-overrides-groups-work-with-oauth2/175606/13
https://meta.discourse.org/t/managing-group-membership-via-authentication/175950/32 [and others above])
and the feature has been mentioned as #pr-welcome
(https://meta.discourse.org/t/managing-group-membership-via-authentication/175950/30).
I've also added in a match_by_username option since this fits our use-case migrating from Crowd.
Apologies if the code is insufficient, I'm not a native ruby developer! If tests are required please could you point me at documentation that might help me with writing those?
Thank you!
PS Thanks for Discourse!
هل سيكون من الممكن إدراج هذا ضمن وظائف Discourse؟
إعجاب واحد (1)