KeycloakConfig constructor
KeycloakConfig({})
Implementation
KeycloakConfig({
required this.bundleIdentifier,
required this.clientId,
required this.frontendUrl,
required this.realm,
this.additionalScopes,
this.clientSecret,
bool? allowInsecureConnections,
}) : _allowInsecureConnections =
allowInsecureConnections ?? !frontendUrl.startsWith('https://'),
assert(
RegExp(r'^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*$')
.hasMatch(bundleIdentifier),
'Invalid bundle identifier: must be a valid hostname (no spaces, underscores, etc.).',
);