Newer Version Available
AuthConfiguration クラス
名前空間
例
次の例では、Auth.AuthConfiguration クラスのメソッドをコールする方法を示します。このサンプルを実行するには、有効な URL の値と開発者名を指定する必要があります。
1String communityUrl = '<Add URL>';
2String startUrl = '<Add URL>';
3Auth.AuthConfiguration authConfig = new Auth.AuthConfiguration(communityUrl,startUrl);
4List<AuthProvider> authPrvs = authConfig.getAuthProviders();
5String bColor = authConfig.getBackgroundColor();
6String fText = authConfig.getFooterText();
7
8String sso = Auth.AuthConfiguration.getAuthProviderSsoUrl(communityUrl, startUrl, 'developerName');AuthConfiguration コンストラクタ
AuthConfiguration のコンストラクタは次のとおりです。
AuthConfiguration メソッド
getAllowInternalUserLoginEnabled()
署名
public Boolean getAllowInternalUserLoginEnabled()
戻り値
使用方法
true の場合、内部ユーザはコミュニティログインページから内部ログイン情報を使用してコミュニティにログインできます。コミュニティから内部組織に移動する場合、再度ログインする必要はありません。
getAuthConfigProviders()
署名
public List<AuthConfigProviders> getAuthConfigProviders()
戻り値
型: List<AuthConfigProviders>
認証プロバイダ (AuthProvider sObject の子である AuthConfigProviders sObject) のリスト。
getAuthProviderSsoUrl(communityUrl, startUrl, developerName)
署名
public static String getAuthProviderSsoUrl(String communityUrl, String startUrl, String developerName)
パラメータ
getSamlSsoUrl(communityUrl, startURL, samlId)
署名
public static String getSamlSsoUrl(String communityUrl, String startURL, String samlId)
パラメータ
getUsernamePasswordEnabled()
署名
public Boolean getUsernamePasswordEnabled()
戻り値
型: Boolean
isCommunityUsingSiteAsContainer()
署名
public Boolean isCommunityUsingSiteAsContainer()
戻り値
型: Boolean