A controller that manages authorization requests created by a provider.


class ASAuthorizationController : NSObject


Creating a Controller

init(authorizationRequests: [ASAuthorizationRequest])

Creates a controller from a collection of authorization requests.

Inspecting Requests

var authorizationRequests: [ASAuthorizationRequest]

The authorization requests that the controller manages.

class ASAuthorizationRequest

A base class for different kinds of authorization requests.

Presenting Requests

var presentationContextProvider: ASAuthorizationControllerPresentationContextProviding?

A delegate that provides a display context in which the system can present an authorization interface to the user.

protocol ASAuthorizationControllerPresentationContextProviding

An interface the controller uses to ask a delegate for a presentation context.

Executing Requests

func performRequests()

Starts the authorization flows named during controller initialization.

Responding to Request Completion

var delegate: ASAuthorizationControllerDelegate?

A delegate that the authorization controller informs about the success or failure of an authorization attempt.

protocol ASAuthorizationControllerDelegate

An interface for providing information about the outcome of an authorization request.


Inherits From

Conforms To

See Also

Sign In with Apple

Implementing User Authentication with Sign in with Apple

Provide a way for users of your app to set up an account and start using your services.

Sign in with Apple Entitlement

An entitlement that lets your app use Sign in with Apple.

class ASAuthorizationAppleIDProvider

A mechanism for generating requests to authenticate users based on their Apple ID.

class ASAuthorizationAppleIDCredential

A credential that results from a successful Apple ID authentication.