SSOに関する2つの議論:管理者とモデレーターの同期を避ける

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?

Any thoughts on this @sam?

We are going to need 2 extra site settings here:

sso_provider_include_groups
sso_provider_include_staff_flags

I think the default is correct though.

@sam さん、これに関する PR はまだ歓迎されますか?

はい、ここに何かを追加することに賛成です。それは明らかにコンシューマー側で動作させる必要があります。ただ、名前付けに少し悩んでいます。

sso_sync_staffsso_sync_groups はどうでしょうか?sso_sync_groups の問題は、sso_overrides_groups と名前が衝突してしまうことです。

そのため、代わりに sso_incoming_scopes という名前を採用し、デフォルト値を staff,groups... にして、許可する受信スコープを選択できるようにするのはどうでしょうか。