Structure

ASAuthorization.Scope

The kinds of contact information that can be requested from the user.

Declaration

struct Scope

Overview

Use one or more of these values in the requestedScopes array that you configure in an instance of either ASAuthorizationAppleIDRequest or ASAuthorizationSingleSignOnRequest to request certain contact information from the user.

Inspect the authorizedScopes array of an ASAuthorizationAppleIDCredential instance, or the (similarly named) authorizedScopes array of an ASAuthorizationSingleSignOnCredential instance, to see what scopes the user actually authorized. This might differ from the scopes you requested.

Topics

Scopes

static let email: ASAuthorization.Scope

A scope that includes the user’s email address.

static let fullName: ASAuthorization.Scope

A scope that includes the user’s full name.

Creating a Scope

init(String)

Creates a scope from the given string.

init(rawValue: String)

Creates a scope from the given string.

Relationships

See Also

Characterizing an Authorization

struct ASAuthorization.OpenIDOperation

The kinds of operations that you can perform with OpenID authentication.