Download the PHP package vss/oauth-extension-bundle without Composer
On this page you can find all versions of the php package vss/oauth-extension-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vss/oauth-extension-bundle
More information about vss/oauth-extension-bundle
Files in vss/oauth-extension-bundle
Package oauth-extension-bundle
Short Description OAuth Extension for FOSOAuthServerBundle
License MIT
Informations about the package oauth-extension-bundle
VssOAuthExtensionBundle
Documentation
Introduction
This bundle extends the features of the friendsofsymfony/oauth-server-bundle
( https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/blob/master/Resources/doc/index.md ).
Grants
Email Grant
This grant allow email based token delivering, the first argument must be a self-made class implementing the interface Vss\OAuthExtensionBundle\Security\Utils\EmailProvider
. This class is responsible to deliver a user ( Symfony\Component\Security\Core\User\UserInterface
) or null.
Here is the @app.security.provider.client_email
service, Client
implements UserInterface
.
The idea is that you can setup multiple grants for differents user types, we can imagine one EmailProvider returning Admin, an other returning a User, Moderator, etc ... So it is very flexible.
Provider Grant
This grant is supposed to deliver a token from a OAuth Login, like Facebook Login.
The second argument implement the interface Vss\OAuthExtensionBundle\Security\OAuth\OAuthUserManagerInterface
.
Then, this manage should return a user with the provider id or email for example.
This grant works with OAuth Authorization Code or OAuth Access Token from the provider. If it is possible I would recommend using the Code instead of Access Token if your website doesn't support HTTPS.
Now, only these providers are available :
Example configuration from config.yml
.
TODOS
Improve doc, more tests.
All versions of oauth-extension-bundle with dependencies
symfony/symfony Version 3.2.*
friendsofsymfony/oauth-server-bundle Version ^1.5
sensio/buzz-bundle Version ^1.1
friendsofsymfony/user-bundle Version ~2.0@dev