A registration handler is an Apex class that handles the heavy lifting of creating Salesforce users, updating users, and linking to existing users, accounts, and contacts.
Required Editions
| Setup for Mobile Publisher available in: Lightning Experience |
| Setup for Mobile Publisher available in: production only (not sandbox) |
| Available in Lightning Experience in: Enterprise, Performance, and Unlimited Editions |
| User Permissions Needed | |
|---|---|
| To create and modify a Mobile Publisher project: | Manage mySalesforce Apps |
| To view the settings: | View Setup and Configuration |
| To edit the settings: |
Customize Application AND Manage Auth. Providers |
Your registration handler enables SSO to Salesforce using your Apple authentication provider. Create a registration handler based on a sample SocialRegHandler registration handler available from GitHub. Then update your Apple auth.provider with the new handler.
- Download SocialRegHandler from GitHub: https://github.com/salesforceidentity/social-signon-reghandler.
- From Setup, enter Apex Classes in the Quick Find box, then click Apex Classes.
- Locate the Apex class for the registration handler created when you created the Apple auth. provider. Replace the contents with the Apex code downloaded from GitHub.
- Modify the Apex class for Apple. For reference, see RegistrationHandler Interface.
- From the Apple Auth. Provider page, for Registration Handler, select the Apple registration handler that you created.
- For Execute Registration As, select a Salesforce admin with Manage Users
permission.
Execute Registration As provides the context in which the registration handler runs. Choose a user regardless of whether you’re specifying an existing registration handler class or creating one from the template. In production, you typically create a system user for the Execute Registration As user. This way, operations performed by the handler are easily traced back to the registration process. For example, if a contact is created, the system user creates it.
- Save your settings.