A session manager that mediates sharing data between an app and a web browser.


class ASWebAuthenticationSessionWebBrowserSessionManager : NSObject


You don't create a session manager directly. Instead, use the shared session manager to tell the system what instance within your web browser app handles authentication requests. Do this by assigning an instance of a class that adopts the ASWebAuthenticationSessionWebBrowserSessionHandling protocol to the shared manager’s sessionHandler property.

You can also use the shared managers wasLaunchedByAuthenticationServices property to determine if your web browser app was launched for the specific purpose of performing authentication.


Getting the Shared Manager

class var shared: ASWebAuthenticationSessionWebBrowserSessionManager

The shared manager for which a web browser acts as the session handler.

Handling a Session Request

var sessionHandler: ASWebAuthenticationSessionWebBrowserSessionHandling

A handler that a web browser provides to handle session requests from an app.

protocol ASWebAuthenticationSessionWebBrowserSessionHandling

An interface that a session handler implements to handle login requests from an app.

Querying the Manager

var wasLaunchedByAuthenticationServices: Bool

A Boolean that indicates whether the session was launched by authentication services.


Inherits From

Conforms To

See Also

Web Browser Authentication Session Support

Supporting Single Sign-On in a Web Browser App

Extend your web browser app to handle web authentication requests from other apps.

property list key ASWebAuthenticationSessionWebBrowserSupportCapabilities

A collection of keys that a browser app uses to declare its ability to handle authentication requests from other apps.