INTEGRATION-ARCHITECTURE-DESIGNER practice question 20 of 25

Which two requirements should the Salesforce Community Cloud support for self-registration and SSO? Choose 2 answers

Full set: 106 questions

Domain Design a Security Solution

Answer options
A: SAML SSO and Registration Handler
B: OpenId Connect Authentication Provider and Registration Handler Correct answer
C: SAML SSO and just-in-time provisioning Correct answer
D: OpenId Connect Authentication Provider and just-in-time provisioning
Correct Answer:
B. OpenId Connect Authentication Provider and Registration Handler; C. SAML SSO and just-in-time provisioning
Explanation

Salesforce Experience Cloud (formerly Community Cloud) supports two primary patterns for combining Single Sign-On (SSO) with self-registration:
1. SAML with Just-in-Time (JIT) Provisioning: When using a SAML-based Identity Provider, Salesforce can be configured with JIT provisioning. This feature automatically creates a user record the first time a user successfully authenticates, using attributes passed in the SAML assertion. This seamlessly combines SSO with user creation.
2. OpenID Connect with a Registration Handler: When using an OpenID Connect-based Authentication Provider, a custom Apex class implementing the Auth.RegistrationHandler interface is required. This handler executes upon the user's first login to create a new user, link to an existing user, or update a user record, providing a flexible, programmatic approach to self-registration.

Why Incorrect

A. SAML SSO and Registration Handler: While a custom Apex handler (Auth.SamlJitHandler) can be used with SAML, "Just-in-Time provisioning" is the broader, officially named feature for SAML, making option C the more accurate and standard choice.
D. OpenId Connect Authentication Provider and just-in-time provisioning: The term "Just-in-Time provisioning" refers to a specific feature set within the SAML SSO configuration in Salesforce. The equivalent functionality for OpenID Connect is implemented via a Registration Handler, not a feature named JIT.

References

1. Salesforce Help Documentation - Just-in-Time Provisioning for SAML: "With Just-in-Time (JIT) provisioning for SAML, you can automatically create a user account in your Salesforce org the first time a user logs in from a third-party identity provider... JIT provisioning can simplify account administration and save your users time." This directly supports option C.

2. Salesforce Help Documentation - Configure an OpenID Connect Authentication Provider: "For Registration Handler, select an Apex class that implements the Auth.RegistrationHandler interface... The registration handler creates a Salesforce user, updates an existing user, or links to an existing user, account, or contact." This directly supports option B.

3. Salesforce Developer Documentation - Auth.RegistrationHandler Interface: "Implement this interface to create a custom handler when you use a third-party authentication provider, such as Facebook, or your own identity service using OpenID Connect." This confirms the role of the Registration Handler for OpenID Connect.

4. Salesforce Identity and Access Management Architecture - Architect's Guide: This guide outlines the primary identity patterns. In the context of federated identity, it distinguishes between SAML with JIT provisioning and social sign-on/OpenID Connect using Authentication Providers with a Registration Handler as two distinct methods for external user access and provisioning.

Scroll to Top