Platforms to show: All Mac Windows Linux Cross-Platform

ASAuthorizationAppleIDProviderMBS class   New in 25.3

Super class: ASAuthorizationProviderMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class AuthenticationServices MBS MacFrameworks Plugin 25.3 ✅ Yes ❌ No ❌ No ✅ Yes All
A mechanism for generating requests to authenticate users based on their Apple ID.
Example
Var provider As New ASAuthorizationAppleIDProviderMBS
Var request As ASAuthorizationAppleIDRequestMBS = provider.createRequest
Var controller As New ASAuthorizationControllerMBS(Array(request))
Break

You use a provider to create a request (ASAuthorizationAppleIDRequestMBS), which you then use to initialize a controller (ASAuthorizationControllerMBS) that performs the request.

On success, the controller’s delegate receives an authorization (ASAuthorizationMBS) containing a credential (ASAuthorizationAppleIDCredentialMBS) that has an opaque user identifier. You can use that identifier to later check the user’s credential state—for example, to see if authorization has been revoked—by calling the getCredentialState method.

You need to have a code signed application with the entitlement com.apple.developer.applesignin and a matching mobile provision profile for the application. The easiest way to setup a profile may be to make a dummy applicaiton in Xcode with the same name, bundle identifier and entitlements.
Subclass of the ASAuthorizationProviderMBS class.

Credential States

Constant Value Description
AuthorizationAppleIDProviderCredentialAuthorized 1 The user is authorized.
AuthorizationAppleIDProviderCredentialNotFound 2 The user hasn’t established a relationship with Sign in with Apple.
AuthorizationAppleIDProviderCredentialRevoked 0 The given user’s authorization has been revoked and they should be signed out.
AuthorizationAppleIDProviderCredentialTransferred 3 The app has been transferred to a different team, and you need to migrate the user’s identifier.

Super class ASAuthorizationProviderMBS

This class has no sub classes.

Blog Entries

Release notes

Some related classes:


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


ASAuthorizationAppleIDCredentialMBS   -   ASAuthorizationAppleIDRequestMBS


The biggest plugin in space...