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,
})

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,
}) {
  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;
  }
  return _result;
}