Developed with love by KnpLabs Hire us for your project!
252

LexikJWTAuthenticationBundle

by lexik

This bundle provides JWT authentication for your Symfony2 REST API

LexikJWTAuthenticationBundle

Build Status
Scrutinizer Code Quality
SensioLabsInsight
Latest Stable Version

This bundle provides JWT (Json Web Token) authentication for your Symfony2 REST API using the namshi/jose library.

It has been tested using PHP5.3 to PHP5.6 and HHVM, and Symfony2.3 to Symfony2.6.

Documentation

The bulk of the documentation is stored in the Resources/doc/index.md file in this bundle:

Read the documentation

Testing

Setup the test suite using Composer:

$ composer install --dev

Run it using PHPUnit:

$ vendor/bin/phpunit

Contributing

See CONTRIBUTING file.

Credits

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE
Copyright (C) 2014 Lexik <dev@lexik.fr>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
lexik_jwt_authentication:
private_key_path: ~ # Required
public_key_path: ~ # Required
pass_phrase:
token_ttl: 86400
encoder_service: lexik_jwt_authentication.jwt_encoder
user_identity_field: username
  • forced algorythm in the encoder service
    By slashfan, 1 year ago
  • updated namshi/jose dependency
    By slashfan, 1 year ago
  • Merge pull request #55 from willdurand/patch-1
    By slashfan, 1 year ago
  • Use the recommended way to install Composer pkgs
    By willdurand, 1 year ago
  • Update README.md
    By slashfan, 1 year ago
  • updated namshi/jose dependency requirement
    By slashfan, 1 year ago
  • Merge pull request #47 from lidaa/master
    By slashfan, 2 years ago
  • Update index.md
    By lidaa, 2 years ago
  • Update README.md
    By slashfan, 2 years ago
  • Update 1-configuration-reference.md
    By slashfan, 2 years ago
  • Update .travis.yml
    By slashfan, 2 years ago
  • AuthenticationException added to the AuthenticationFailureEvent
    By gpierret, 2 years ago
  • Merge pull request #45 from gpierret/master
    By slashfan, 2 years ago
  • Merge pull request #43 from victuxbb/jwtmanager_user_identity
    By slashfan, 2 years ago
  • Using PropertyAccess instead of Reflection, a better solution.
    By , 2 years ago
  • Added identity field funcionality and its unit test.
    By victuxbb, 2 years ago
  • Merge pull request #40 from lexik/provider-overwrite
    By slashfan, 2 years ago
  • made user identity field configurable
    By slashfan, 2 years ago
  • added user identity field to provider and manager
    By slashfan, 2 years ago
  • added flexibility for authentication provider customization
    By slashfan, 2 years ago
  • fixed minor coding standards issues
    By slashfan, 2 years ago
  • Merge pull request #28 from EmmanuelVella/authentication-failure
    By slashfan, 2 years ago
  • Improve response and dispatch event in AuthenticationFailureHandler
    By emmanuelvella, 2 years ago
  • Update index.md
    By slashfan, 2 years ago
  • Update 2-data-customization.md
    By slashfan, 2 years ago
  • fixed typos in open ssl keys validation method
    By slashfan, 2 years ago
  • added validation of open ssl keys configuration in bundle extension
    By slashfan, 2 years ago
  • Update 5-encoder-service.md
    By slashfan, 2 years ago
  • removed unnecessary todo comment
    By slashfan, 2 years ago
  • added encoder service customization documentation
    By slashfan, 2 years ago