Swift - Social log-in only, bypass default Log In/Sign Up screen

Happy new year!

I’ve just implemented Auth0 into my mobile app (Swift/Iphone) and now I am wondering if it is possible to bypass the standard Auth0 Log In / Sign up page and go straight to my Social Log In (Salesforce) page instead as this is the only from of authentication that I will be using. It makes for a faster and cleaner experience.

Thanks.

Hey @kingpin, Welcome to the Auth0 Community!

You can use the connection parameter in the /authorize query to mention the connection name. This will directly take you to the IDP login page.

I tried with google login and it worked for me. The following change went into my swift code:

Auth0
            .webAuth()
            .scope("openid profile")
            .audience("https://" + clientInfo.domain + "/userinfo")
            .connection("google-oauth2") // This param with connection name
            ....

It’s in the HomeViewController.swift file
Have a look and let me know how you go!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.