ProviderConfig constructor

ProviderConfig({
  1. Options? options,
  2. LDAPConfig? ldap,
  3. GoogleConfig? google,
  4. OAuthConfig? oauth,
  5. GenericOIDCConfig? oidc,
  6. JWTConfig? jwt,
  7. GitHubConfig? github,
  8. GitHubEnterpriseServerConfig? githubEs,
  9. GitLabConfig? gitlab,
  10. GitLabSelfHostedConfig? gitlabSelfHosted,
  11. AzureADConfig? azureAd,
  12. AppleConfig? apple,
  13. 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;
}