To set up single sign-on (SSO) with an authentication provider, you must build a
registration handler. During SSO, the handler creates and updates users based on information
from the identity provider. For high-scale, high-performance use cases, develop a registration
handler with Apex.
Required Editions
Available in: Lightning Experience and Salesforce Classic
Available in: Enterprise, Performance, Unlimited, and
Developer Editions
To develop a registration handler, create a class that implements the
Auth.RegistrationHandler interface.
For detailed information and an example implementation, see Auth.RegistrationHandler in the
Apex Reference Guide.
To use the registration handler, when you define your authentication provider, specify Apex as
the registration handler type and then select your Apex class for the registration
handler.
If you don't want to use Apex, you can configure a registration handler with Flow Builder.
See these resources for more information.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.