Discourse as SSO provider: "sso secret" vs. "sso provider secrets"

AI-generated summary

The discussion revolves around a perceived breaking change in Discourse’s SSO configuration, where user jack2 reports that their SSO stopped working after the introduction of the sso provider secrets setting, requiring them to manually migrate their sso secret. They question whether backward compatibility was dropped and note a misleading UI message. sam clarifies that sso provider secrets is only relevant when using Discourse as an SSO endpoint for another Discourse site — otherwise, it should remain blank — and urges upgrading to the latest version. zogstrip points to a migration script that should have automatically copied the sso secret into sso provider secrets, expressing surprise it didn’t work for jack2. maja confirms the UI text was outdated and has since been corrected in a commit. jack2 confirms they are using Discourse as an auth provider for another Discourse site and offers to assist in diagnosing why the migration failed for their instance. The issue appears to stem from a misunderstanding of the new setting’s scope and possibly a migration failure, not intentional backward incompatibility.

My site SSO has been broken since the introduction of the sso provider secrets setting. To fix it, I needed to move my sso secret from the sso secret setting to the sso provider secrets setting.

So, as far as I can tell, the sso secret setting has been replaced by the sso provider secrets setting with no backward compatibility. Am I right?

If I am, then a UI bug remains: in the enable sso provider setting, “…requires sso_secret to be set” should be replaced by “…requires sso_provider_secrets to be set”

3 likes

“sso provider secrets” is only there IF you are using Discourse as an SSO endpoint. If you SSO implementation is NOT discourse you do not need to fill anything there.

Not this is not the case

Can you please upgrade to latest ASAP and let us know if the issue remains. sso provider secrets should be blank for you UNLESS you are using Discourse as an auth provider for another Discourse site.

We do have a migration that copies the sso secret into the sso provider secrets site setting so I’m curious to know why yours wasn’t copied over?

1 like

This was outdated indeed after sso_provider_secrets site setting was introduced. I have updated the text in FIX: sso provider copyedit · discourse/discourse@5485248 · GitHub

7 likes

Sorry to be late on this.

@sam, I am using Discourse as an auth provider for another Discourse site.

@zogstrip, how can I help you identify why the migration didn’t work for me?