RGJ
(Richard - Communiteq)
2019 年4 月 15 日 19:02
1
We have two Discourses set up, where one uses SSO against the other one.
However, we do not want to synchronize admin and moderator privs, but they are synced every time a user logs in on the SSO client forum.
sso_overrides_groups
has been disabled. It does not seem to work for admin and moderator privileges, when I look at the code those are implemented separately (https://github.com/discourse/discourse/blob/master/app/models/discourse_single_sign_on.rb#L78-L102 )
Is this by design, or is this a bug? Does anyone know a way around this?
4 个赞
Any thoughts on this @sam ?
1 个赞
sam
(Sam Saffron)
2019 年4 月 16 日 00:07
3
We are going to need 2 extra site settings here:
https://github.com/discourse/discourse/blob/74c4ef6b5019b110819c24a4df8efc2b7e87ebd5/app/controllers/session_controller.rb#L62-L64
sso_provider_include_groups
sso_provider_include_staff_flags
I think the default is correct though.
4 个赞
RGJ
(Richard - Communiteq)
2019 年9 月 4 日 17:55
4
Is a PR for this still welcome @sam ?
3 个赞
sam
(Sam Saffron)
2019 年9 月 14 日 23:04
5
Yes, I support adding something here, it will clearly have to live on the consumer side. I do struggle a bit with naming though.
sso_sync_staff
, sso_sync_groups
maybe? Trouble with sso_sync_groups
is that there is naming clash with sso_overrides_groups.
So maybe instead we go with sso_incoming_scopes
with a default of staff,groups...
then you can select which incoming scopes you allow.
3 个赞