The discussion revolves around issues with the oauth2-basic-support plugin in a SSO setup. wayyt_cc3090 reports that while the access token is successfully obtained, an invalid_credentials error occurs during authentication, with a backtrace indicating the failure in the OAuth2 callback phase. The error message suggests a problem with the OAuth2 server’s response, though pfaffman suggests the server might not be granting sufficient permissions. wayyt_cc3090 later states the initial issue was resolved but introduces a new problem: when logging in via OAuth2, if a user already has an account, the system prompts for email verification, even when the OAuth2 provider does not supply an email field. They seek a way to link accounts without the email prompt, similar to GitHub’s behavior. pfaffman advises logging in instead of creating a new account, but wayyt_cc3090 clarifies the OAuth2 provider lacks an email field, making this approach difficult. Other users, like qinyj and rsegura, ask for solutions to similar problems with WeChat OAuth and the Authentication failure! error.
Hey Bro, I already solve my issue. But I got new trouble.
When I use Oauth2 login, If I already have a account , I want to connect them by email. What should I do?
Because my oauth2 server didn’t have email field . So When I used oauth2 login,discourse want’s me input email and verify.
When I log in with oauth2 and enter an email, if my oauth2 server does not have an email field, how to realize that the email should be re-authenticated and overwrite the registered account, just like the github