Authenticate with SAML gives hashed username and e-mail

Yup! You can clearly see that SAML is sending a hash of the email and the username.

I think that there is some configuration where you map the SAML fields to the Discourse ones, so it’s conceivable that there is something you can change on the Discourse side to fix it.