In order to help debug your issue we’ll need to know a lot more information please.
Which Discourse version are you running?
At which stage of the authentication process does it fail?
What data was POSTed in order to generate this error?
What else can you tell us?