ProviderConfig constructor
ProviderConfig({
- Options? options,
- LDAPConfig? ldap,
- GoogleConfig? google,
- OAuthConfig? oauth,
- GenericOIDCConfig? oidc,
- JWTConfig? jwt,
- GitHubConfig? github,
- GitHubEnterpriseServerConfig? githubEs,
- GitLabConfig? gitlab,
- GitLabSelfHostedConfig? gitlabSelfHosted,
- AzureADConfig? azureAd,
- AppleConfig? apple,
- SAMLConfig? saml,
Implementation
factory ProviderConfig({
Options? options,
LDAPConfig? ldap,
GoogleConfig? google,
OAuthConfig? oauth,
GenericOIDCConfig? oidc,
JWTConfig? jwt,
GitHubConfig? github,
GitHubEnterpriseServerConfig? githubEs,
GitLabConfig? gitlab,
GitLabSelfHostedConfig? gitlabSelfHosted,
AzureADConfig? azureAd,
AppleConfig? apple,
SAMLConfig? saml,
}) {
final $result = create();
if (options != null) {
$result.options = options;
}
if (ldap != null) {
$result.ldap = ldap;
}
if (google != null) {
$result.google = google;
}
if (oauth != null) {
$result.oauth = oauth;
}
if (oidc != null) {
$result.oidc = oidc;
}
if (jwt != null) {
$result.jwt = jwt;
}
if (github != null) {
$result.github = github;
}
if (githubEs != null) {
$result.githubEs = githubEs;
}
if (gitlab != null) {
$result.gitlab = gitlab;
}
if (gitlabSelfHosted != null) {
$result.gitlabSelfHosted = gitlabSelfHosted;
}
if (azureAd != null) {
$result.azureAd = azureAd;
}
if (apple != null) {
$result.apple = apple;
}
if (saml != null) {
$result.saml = saml;
}
return $result;
}