iOS Permission Popup During Login - Auth0.swift SDK

Overview

This article explains why the following permission popup appears whenever trying to log in to Auth0 and how to ignore the popup.

“App” Wants to Use “auth0.com” to Sign in
This allows the app and website to share information about you.

Applies To

  • Auth0.swift SDK

Solution

Details on how to resolve this issue are detailed in How can I disable the login alert box?

  • Auth0.swift uses ASWebAuthenticationSession for web-based authentication (an Apple-based API). This API stores the session cookie in the shared Safari cookie jar, and according to Apple, this requires user consent.
  1. If Single Sign-On (SSO) is not required, use ephemeral sessions
  2. Use SFSafariViewController which requires a bit more setup but can support SSO