I am trying to login to my application using identifier first and email provider. I disabled Username-Password-Authentication. I have given my gmail id and it is asking for code to login.
However, I’d like it to automatically navigate to the Gmail login page when I enter my Gmail address. How can I make this happen?
To navigate directly to a specific connection, you can add the connection parameter to your /authorize request. For Google, this will be connection=google-oauth2.
It will look something like this: https://YOUR_TENANT.us.auth0.com/authorize?client_id=CLIENT_ID&response_type=code&scope=openid+profile+email&redirect_uri=REDIRECT_URI&prompt=login&connection=google-oauth2
Thank you for your response. I tried the code, and I am now able to navigate to the Gmail login page. Currently, I am implementing this locally, so my redirect_url is set to 'http://localhost:4200'. However, after entering the email and password, the redirection is not happening as expected. In the /authorize endpoint, the redirect_uri is being sent as undefined.
I have verified that 'http://localhost:4200' is correctly configured as one of the Allowed Callback URLs in my application settings.
I am now able to navigate to the redirect URI, and after entering the email ID, it redirects to the Gmail login page. How can I directly navigate to the Gmail password page?
I am happy to hear that this has helped you directly send users to the Google social login and that you successfully get redirected back to your localhost URL. You cannot send users directly to Google’s password page - adding the connection=google-oauth2 is the closest you can get presently. When sending users to an external IdP, what is shown on the IdP side is out of Auth0’s control.