My configuration for Oauth basic is behaving quite odd, I had a few errors initially during setup and have resolved them. However, now I can see the flow going from Discourse -> Cognito Authorize Endpoint -> Discourse Callback -> Discourse /login. There is no warning or errors in the log, and when checking the logs, I can see that there is a successful JSON call to grab the user data.
Given that it appears to have a successful token and has loaded the JSON data, I would expect the user account to be successfully registered, instead the user is redirected to the login page.
Unfortunately, that information is coming up blank with nothing to confirm without entering it all their information.
Also, is it possible to auto-confirm the user? Their email is already verified on our side and I’d like to keep this experience as seamless as possible for our users?
The minimum data to connect the account to a Discourse account is just the id. However, Discourse needs a username and email. That’s why we pop the sign-up modal.
If you can add that information to the OAuth API then that would make things much smoother for your users