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 |
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.
- 3 methods
- method Constructor
- method createRequest as ASAuthorizationAppleIDRequestMBS
- method getCredentialStateForUserID(userID as String, theDelegate as CredentialStateCompletedMBS)
- 2 shared methods
- shared method AuthorizationAppleIDProviderCredentialRevokedNotification as String
- shared method Available as Boolean
- delegate CredentialStateCompletedMBS(userID as String, credentialState as Integer, error as NSErrorMBS)
- 4 constants
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
- 2 properties
- property Description as String
- property Handle as Integer
- method Constructor Private
- shared method Available as Boolean
This class has no sub classes.
Blog Entries
Release notes
- Version 25.3
- Added ASAuthorizationAppleIDProviderMBS, ASAuthorizationAppleIDRequestMBS and ASAuthorizationAppleIDCredentialMBS classes for Sign in with Apple.
Some related classes:
- class ASAuthorizationAppleIDCredentialMBS
- class ASAuthorizationAppleIDRequestMBS
- class ASAuthorizationControllerMBS
- class ASAuthorizationMBS
- class ASAuthorizationProviderMBS
- class NSErrorMBS
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
ASAuthorizationAppleIDCredentialMBS - ASAuthorizationAppleIDRequestMBS
