class JsonLoginFactory extends AbstractFactory
JsonLoginFactory creates services for JSON login authentication.
protected | $options | from AbstractFactory | |
protected | $defaultSuccessHandlerOptions | from AbstractFactory | |
protected | $defaultFailureHandlerOptions | from AbstractFactory |
array | create(ContainerBuilder $container, string $id, array $config, $userProviderId, $defaultEntryPointId) Configures the container services required to use the authentication listener. | from AbstractFactory |
addConfiguration(NodeDefinition $node) | from AbstractFactory | |
addOption($name, $default = null) | from AbstractFactory | |
string | createAuthProvider(ContainerBuilder $container, string $id, array $config, string $userProviderId) Subclasses must return the id of a service which implements the AuthenticationProviderInterface. | |
string | getListenerId() Subclasses must return the id of the abstract listener template. | |
string | createEntryPoint(ContainerBuilder $container, string $id, array $config, string $defaultEntryPointId) Subclasses may create an entry point of their as they see fit. The default implementation does not change the default entry point. | from AbstractFactory |
bool | isRememberMeAware($config) Subclasses may disable remember-me features for the listener, by always returning false from this method. | |
createListener($container, $id, $config, $userProvider) | ||
createAuthenticationSuccessHandler($container, $id, $config) | from AbstractFactory | |
createAuthenticationFailureHandler($container, $id, $config) | from AbstractFactory | |
getSuccessHandlerId($id) | from AbstractFactory | |
getFailureHandlerId($id) | from AbstractFactory | |
__construct() | ||
string | getPosition() Defines the position at which the provider is called. | |
string | getKey() Defines the configuration key used to reference the provider in the firewall configuration. |
Configures the container services required to use the authentication listener.
ContainerBuilder | $container | |
string | $id | The unique id of the firewall |
array | $config | The options array for the listener |
$userProviderId | ||
$defaultEntryPointId |
array | containing three values: - the provider id - the listener id - the entry point id |
NodeDefinition | $node |
$name | ||
$default |
Subclasses must return the id of a service which implements the AuthenticationProviderInterface.
ContainerBuilder | $container | |
string | $id | The unique id of the firewall |
array | $config | The options array for this listener |
string | $userProviderId | The id of the user provider |
string | never null, the id of the authentication provider |
Subclasses must return the id of the abstract listener template.
Listener definitions should inherit from the AbstractAuthenticationListener like this:
In the above case, this method would return "my.listener.id".
string |
Subclasses may create an entry point of their as they see fit. The default implementation does not change the default entry point.
ContainerBuilder | $container | |
string | $id | |
array | $config | |
string | $defaultEntryPointId |
string | the entry point id |
Subclasses may disable remember-me features for the listener, by always returning false from this method.
$config |
bool | Whether a possibly configured RememberMeServices should be set for this listener |
$container | ||
$id | ||
$config | ||
$userProvider |
$container | ||
$id | ||
$config |
$container | ||
$id | ||
$config |
$id |
$id |
Defines the position at which the provider is called.
Possible values: pre_auth, form, http, and remember_me.
string |
Defines the configuration key used to reference the provider in the firewall configuration.
string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginFactory.html