A session that an app uses to authenticate a user through a web service.
- iOS 12.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 6.2+Beta
ASWeb instance to authenticate a user through a web service, including one run by a third party. Initialize the session with a URL that points to the authentication webpage. A browser loads and displays the page, from which the user can authenticate. In iOS, the browser is a secure, embedded web view. In macOS, the system opens the user’s default browser if it supports web authentication sessions, or Safari otherwise.
On completion, the service sends a callback URL to the session with an authentication token, and the session passes this URL back to the app through a completion handler.
For more details, see Authenticating a User Through a Web Service.