OAuthConfig constructor
OAuthConfig({})
Implementation
factory OAuthConfig({
$core.String? clientId,
$core.String? authorizationEndpoint,
$core.String? tokenEndpoint,
$core.String? userEndpoint,
$core.Iterable<$core.String>? scopes,
$core.String? idAttribute,
}) {
final $result = create();
if (clientId != null) {
$result.clientId = clientId;
}
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;
}
return $result;
}