AddGenericOAuthProviderRequest constructor
AddGenericOAuthProviderRequest({})
Implementation
factory AddGenericOAuthProviderRequest({
$core.String? name,
$core.String? clientId,
$core.String? clientSecret,
$core.String? authorizationEndpoint,
$core.String? tokenEndpoint,
$core.String? userEndpoint,
$core.Iterable<$core.String>? scopes,
$core.String? idAttribute,
$11.Options? providerOptions,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (clientId != null) {
_result.clientId = clientId;
}
if (clientSecret != null) {
_result.clientSecret = clientSecret;
}
if (authorizationEndpoint != null) {
_result.authorizationEndpoint = authorizationEndpoint;
}
if (tokenEndpoint != null) {
_result.tokenEndpoint = tokenEndpoint;
}
if (userEndpoint != null) {
_result.userEndpoint = userEndpoint;
}
if (scopes != null) {
_result.scopes.addAll(scopes);
}
if (idAttribute != null) {
_result.idAttribute = idAttribute;
}
if (providerOptions != null) {
_result.providerOptions = providerOptions;
}
return _result;
}