Could you go to discourse.example.com/logs and check if there are any warnings or errors related to SSO?
discourse.example.com/logs