SocialLoginController Class

Represents the social authentication providers configured for the community. For internal use only.

Namespace

AppLauncher

SocialLoginController Methods

The following are methods for SocialLoginController.

getCommunityDomainSsoUrl(startUrl, developerName)

Returns the single sign-on URL for a community or Salesforce My Domain subdomain.
Note

Note

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 use the community 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.

Signature

public static String getCommunityDomainSsoUrl(String startUrl, String developerName)

Parameters

startUrl
Type: String
The page that you see after successfully logging into the community 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 community.

Signature

public static String getSamlSsoUrl(String startUrl, String samlId)

Parameters

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

Return Value

Type: String

getSsoUrl(startUrl, developerName)

Returns the single sign-on URL for the community.

Signature

public static String getSsoUrl(String startUrl, String developerName)

Parameters

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

Return Value

Type: String