OAuthConfig constructor
OAuthConfig({
- ClientAuthentication? clientAuthentication,
- PKCE? pkce,
- URLValidation? urlValidation,
- Iterable<
String> ? originUris, - Iterable<
String> ? redirectUris, - String? logoutUri,
- 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;
}