AuthenticationCollectorInterface
interface AuthenticationCollectorInterface (View source)
Interface for collectors of registered authentication providers.
Methods
addProvider(AuthenticationProviderInterface $provider, string $provider_id, int $priority = 0, bool $global = FALSE)
Adds a provider to the array of registered providers.
bool
isGlobal(string $provider_id)
Returns whether a provider is considered global.
getProvider(string $provider_id)
Returns an authentication provider.
getSortedProviders()
Returns the sorted array of authentication providers.
Details
addProvider(AuthenticationProviderInterface $provider, string $provider_id, int $priority = 0, bool $global = FALSE)
Adds a provider to the array of registered providers.
bool
isGlobal(string $provider_id)
Returns whether a provider is considered global.
AuthenticationProviderInterface|null
getProvider(string $provider_id)
Returns an authentication provider.
AuthenticationProviderInterface[]
getSortedProviders()
Returns the sorted array of authentication providers.