Lars Vierbergen
861518efdd
|
7 years ago | |
---|---|---|
Controller | 7 years ago | |
DependencyInjection | 7 years ago | |
Entity | 7 years ago | |
Event | 8 years ago | |
EventListener | 7 years ago | |
ExternalAccount | 7 years ago | |
Resources | 7 years ago | |
Security/Core/User | 7 years ago | |
ValueObject | 8 years ago | |
.gitignore | 8 years ago | |
AuthserverExternalAccountBundle.php | 7 years ago | |
ExternalAccountEvents.php | 8 years ago | |
LICENSE.md | 7 years ago | |
autoload.php | 8 years ago | |
composer.json | 7 years ago | |
composer.lock | 7 years ago | |
readme.md | 7 years ago |
readme.md
Authserver: External account plugin
This Authserver plugin that provides common infrastructure for plugins adding support for authentication with external accounts. It does not provide any external accounts by itself, but is a dependency of other plugins that do provide external accounts.
Developing an external authentication plugin
An external authentication plugin requires at least two parts of configuration: Symfony authentication configuration and an Authserver ExternalAccountProviderInterface.
Symfony authentication
Your external authentication plugin should add an extra way of authenticating to the public
firewall.
Because the firewall configuration can not be modified using the standard symfony PrependExtensionInterface::prepend()
method, refer to the "Plugin events" section of the Authserver plugin documentation on how to modify configuration before it is loaded.
Typically, only very basic configuration is needed during the PluginEvents::CONTAINER_CONFIG
, the rest of the configuration can be handled in the Extension,
where you can access the container configuration.
Authserver ExternalAccountProviderInterface
Implementing the ExternalAccountProviderInterface
and exposing it as a service with tag vierbergenlars.external_account.provider
registers the External Account Provider with Authserver and provides an easy interface to configure login buttons, and optionally connect and disconnect buttons for users to attach and detach their existing account from an external account.