registerDefaultAuthenticators function
void
registerDefaultAuthenticators()
Registers the built-in authenticator factories. This should be invoked in every isolate that intends to use AuthenticatorRegistry.
Implementation
void registerDefaultAuthenticators() {
if (_defaultsRegistered &&
AuthenticatorRegistry.factoryFor(
const _AnonymousAuthenticatorFactory().method,
) !=
null) {
return;
}
AuthenticatorRegistry.registerFactory(const _AnonymousAuthenticatorFactory());
AuthenticatorRegistry.registerFactory(const TicketAuthenticatorFactory());
AuthenticatorRegistry.registerFactory(const CraAuthenticatorFactory());
AuthenticatorRegistry.registerFactory(const ScramAuthenticatorFactory());
AuthenticatorRegistry.registerFactory(const CryptosignAuthenticatorFactory());
AuthenticatorRegistry.registerFactory(const RemoteAuthenticatorFactory());
_defaultsRegistered = true;
}