RemoteAuthenticator constructor
RemoteAuthenticator(
- RemoteAuthenticatorConfig config,
- List<
RemoteAuthenticatorDelegate> delegates, { - required List<
String> delegateIds,
Implementation
RemoteAuthenticator(
RemoteAuthenticatorConfig config,
List<RemoteAuthenticatorDelegate> delegates, {
required List<String> delegateIds,
}) : _config = config,
_random = Random.secure(),
_handles = delegates
.asMap()
.entries
.map(
(entry) => _DelegateHandle(
id: delegateIds[entry.key],
delegate: entry.value,
),
)
.toList(growable: false) {
if (_handles.isEmpty) {
throw StateError('RemoteAuthenticator requires at least one delegate');
}
}