Note that the Discourse username must not contain spaces or special characters.
I had an SSO connection that had been running for some time (with an @ in the username). After one of the recent updates, this ceased to function. I replaced the @ with an underscore, and everything has been working since.
Manually entering an @ in the username is also not permitted in Discourse.