AddGenericOIDCProviderRequest constructor

AddGenericOIDCProviderRequest({
  1. String? name,
  2. String? issuer,
  3. String? clientId,
  4. String? clientSecret,
  5. Iterable<String>? scopes,
  6. Options? providerOptions,
  7. bool? isIdTokenMapping,
})

Implementation

factory AddGenericOIDCProviderRequest({
  $core.String? name,
  $core.String? issuer,
  $core.String? clientId,
  $core.String? clientSecret,
  $core.Iterable<$core.String>? scopes,
  $10.Options? providerOptions,
  $core.bool? isIdTokenMapping,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (issuer != null) {
    $result.issuer = issuer;
  }
  if (clientId != null) {
    $result.clientId = clientId;
  }
  if (clientSecret != null) {
    $result.clientSecret = clientSecret;
  }
  if (scopes != null) {
    $result.scopes.addAll(scopes);
  }
  if (providerOptions != null) {
    $result.providerOptions = providerOptions;
  }
  if (isIdTokenMapping != null) {
    $result.isIdTokenMapping = isIdTokenMapping;
  }
  return $result;
}