Open 3rd party whitelisted URLs in app, without in-app-browser plugin

We’re currently using the web authentication auf auth0. Since the login screen is served from auth0’s domain, currently login screen opens in the phone’s browser, not within the ionic app itself.

Is there a way to whitelist auth0’s login URLs so that those pages are loaded inside the app, without the overhead of using an in-app-browser plugin (which comes with its own complexity)?

For reference, I found out that we have to modify capacitor.config.json as following:

{
  ...
  "server": {
    ...
    "allowNavigation": ["*.auth0.com"]
    ...
  },
  ...
}

Obviously adopt the allowed URLs to your needs.

1 Like