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,
  $11.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;
}