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