Newer Version Available

This content describes an older version of this product. View Latest

SocialLoginController Class

Represents the social authentication providers configured for the Experience Cloud site. For internal use only.

Namespace

AppLauncher

SocialLoginController Methods

The following are methods for SocialLoginController.

getCommunityDomainSsoUrl(startUrl, developerName)

Returns the single sign-on URL for an Experience Cloud site or Salesforce My Domain subdomain.

For better performance, we recommend using this method instead of getAuthProviderSsoUrl. If the authentication provider has Use Subdomain for Callback enabled, changing the single sign-on URL also changes the callback URL to the Experience Cloud site subdomain. Before switching to this method, update the callback URL in your third-party applications to avoid getting an invalid callback URL error during single sign-on.

Note

Signature

public static String getCommunityDomainSsoUrl(String startUrl, String developerName)

Parameters

startUrl
Type: String
The page that you see after successfully logging into the Experience Cloud site or My Domain subdomain.
developerName
Type: String
The unique name of the authentication provider.

Return Value

Type: String

getSamlSsoUrl(startUrl, samlId)

Returns the URL to the SAML provider for the Experience Cloud site.

Signature

public static String getSamlSsoUrl(String startUrl, String samlId)

Parameters

startUrl
Type: String
Path to the page that users see when they access the Experience Cloud site.
samlId
Type: String
Unique identifier of the SAML provider.

Return Value

Type: String

getSsoUrl(startUrl, developerName)

Returns the single sign-on URL for the Experience Cloud site.

Signature

public static String getSsoUrl(String startUrl, String developerName)

Parameters

startUrl
Type: String
Path to the page that users see when they access the Experience Cloud site.
developerName
Type: String
Unique name of the authentication provider.

Return Value

Type: String