admhpkns is setting up Discourse as an SSO provider but encounters an error: TypeError (no implicit conversion of nil into String). The error occurs despite setting an SSO secret. simon suggests ensuring the SSO secret is added to the sso provider secrets site setting, as adding it to the sso secret setting causes the error. admhpkns suspects a typo in the domain and later confirms this, feeling embarrassed about the oversight: admhpkns finds that a typo in the Admin Settings caused the issue.
Make sure you have added the SSO secret to the sso provider secrets site setting. That setting takes a list of domain/secret pairs. You can set the domain to * to allow the secret to be used for all domains.
If I add the secret to the sso secret setting, instead of the sso provider secrets setting, I get the error that you are reporting.
Thanks. I thought I did that. Will check again. I’m thinking maybe a typo in the domain? Actually, what I think I did was put it in both places. Maybe that was the mistake?
Okay … I feel a bit embarrassed by this one. I swear I looked at the setting about 30 times to make sure I had it setup right in the Admin Settings. But, of course, it was a typo.