TokenAndProviderFactory
class TokenAndProviderFactory implements TokenAndProviderFactoryInterface (View source)
Default factory for providers and tokens.
Properties
| protected bool | $isInitialized | ||
| protected AuthenticationProviderInterface[] | $providers | ||
| protected TokenInterface[] | $tokens | ||
| protected array | $providerConfigurations | ||
| protected AuthenticationProviderResolver | $providerResolver | ||
| protected AuthenticationTokenResolver | $tokenResolver | ||
| protected RequestPatternResolver | $requestPatternResolver | ||
| protected ObjectManagerInterface | $objectManager |
Methods
No description
Returns clean tokens this manager is responsible for.
Returns all configured authentication providers
Inject the settings and does a fresh build of tokens based on the injected settings
Builds the provider and token objects based on the given configuration
Details
__construct(AuthenticationProviderResolver $providerResolver, RequestPatternResolver $requestPatternResolver, AuthenticationTokenResolver $tokenResolver)
No description
array
getTokens()
Returns clean tokens this manager is responsible for.
Note: The order of the tokens in the array is important, as the tokens will be authenticated in the given order.
array
getProviders()
Returns all configured authentication providers
void
injectSettings(array $settings)
Inject the settings and does a fresh build of tokens based on the injected settings
protected void
buildProvidersAndTokensFromConfiguration()
Builds the provider and token objects based on the given configuration