Download the PHP package gfreeau/get-jwt-bundle without Composer
On this page you can find all versions of the php package gfreeau/get-jwt-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gfreeau/get-jwt-bundle
More information about gfreeau/get-jwt-bundle
Files in gfreeau/get-jwt-bundle
Package get-jwt-bundle
Short Description This Symfony2 bundle provides a security listener to return a JWT
License MIT
Homepage https://github.com/gfreeau/GfreeauGetJWTBundle
Informations about the package get-jwt-bundle
GfreeauGetJWTBundle
This bundle requires LexikJWTAuthenticationBundle. Please read the docs for that bundle at https://github.com/lexik/LexikJWTAuthenticationBundle
It provides a replacement for the security factory "form_login". "form_login" is designed for use with cookies and will set cookies even when the stateless parameter is true.
The 'switch_user' and 'logout' config options are not supported with this security factory as they rely on cookies.
Authenticating json web tokens is provided by LexikJWTAuthenticationBundle.
Json Web Tokens are perfect for use in SPA such as AngularJS or in mobile applications. Using this bundle you can easily use symfony2 for your API.
You should use SSL connections only for your API to protect the contents of your json web tokens.
Installation
Installation with composer:
(For Symfony2, Symfony3 and Symfony4)
Next, be sure to enable the bundle in your app/AppKernel.php
file:
Usage
Example of possible security.yml
:
This bundle supports the AuthenticationSuccessEvent from LexikJWTAuthenticationBundle, read their documentation for more information. You can use this event to append more information to your json web token.
A route must be defined for the url you wish to use to get your token:
All versions of get-jwt-bundle with dependencies
symfony/http-kernel Version ^2.7 || ^3.2 || ^4.0
symfony/dependency-injection Version ^2.7 || ^3.2 || ^4.0
symfony/security-bundle Version ^2.7 || ^3.2 || ^4.0