OAuthConfig constructor

OAuthConfig({
  1. ClientAuthentication? clientAuthentication,
  2. PKCE? pkce,
  3. URLValidation? urlValidation,
  4. Iterable<String>? originUris,
  5. Iterable<String>? redirectUris,
  6. String? logoutUri,
  7. Iterable<EnabledGrant>? enabledGrants,
})

Implementation

factory OAuthConfig({
  ClientAuthentication? clientAuthentication,
  PKCE? pkce,
  URLValidation? urlValidation,
  $core.Iterable<$core.String>? originUris,
  $core.Iterable<$core.String>? redirectUris,
  $core.String? logoutUri,
  $core.Iterable<EnabledGrant>? enabledGrants,
}) {
  final $result = create();
  if (clientAuthentication != null) {
    $result.clientAuthentication = clientAuthentication;
  }
  if (pkce != null) {
    $result.pkce = pkce;
  }
  if (urlValidation != null) {
    $result.urlValidation = urlValidation;
  }
  if (originUris != null) {
    $result.originUris.addAll(originUris);
  }
  if (redirectUris != null) {
    $result.redirectUris.addAll(redirectUris);
  }
  if (logoutUri != null) {
    $result.logoutUri = logoutUri;
  }
  if (enabledGrants != null) {
    $result.enabledGrants.addAll(enabledGrants);
  }
  return $result;
}