We are using Lock v11.26.3 in an Angular app to implement a styled user interface. We are required to collect additional user information when a user signs up. We are using a redirect rule to trigger this additional user information form.
The workflow works as intended when using Username-Password-Authentication. The issue arises when trying to sign up/create account using Google.
When using Google to sign up the workflow goes like this
/login page presents lock screen
user signs up with Google and an account is created
user is redirected to /create-account page to collect additional information
user submits additional information and they are redirected to http://${environment.auth0.domain}/continue?state=${state}
auth0 presents an unauthorized 401 response.
The same workflow succeeds when using the Username-Password-Authentication. This leads me to believe it doesn’t have to do with allowed callback urls, or allowed web origins. I should also mention that the social account is successfully created in auth0 and can be used to sign on. It’s just that the unauthorized 401 stops the user from getting into the app. I am at a loss for what to try next to make the account creation for a social account work after a redirect.
I would start by ensuring that you redirect from your application to continue endpoint directly with HTTPS instead of HTTP. Now, if this works for DB connection this would not be the real root cause although you should still do it.
Given the trace only contains the last leg of the process I would confirm that you’re NOT using Google connection with developer keys (Test Social Connections with Auth0 Developer Keys). These can be used for very simple login tests through the dashboard just to understand the feel of how Auth0 would work with social connections, but my recommendation would be to avoid them as soon as you start doing anything else.
If you are not using developer keys the plot thickens in which case an HTTP trace with the full process could be helpful, but for that one you would need to redact a lot of stuff as it could contain sensitive data.
@jmangelo Thanks for the reply. I have changed the http request to https. You were right that it wasn’t the root cause. I don’t believe that I’m using google connection with developer keys.
I have generated a HAR file and redacted sensitive info. Let me know if there’s anything I can do to provide more context.
In the HAR file at the unauthorized 401 error I am seeing the following, which doesn’t look quite right. But I’m not sure what to expect for a “scope” value either.
From the trace it does seem the Google social connection in your tenant is configured to use development keys so you should check the Google social connection settings and configure it with your own client identifier information you will need to obtain from Google.