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

LexikJWTAuthenticationBundle

by lexik

JWT authentication for your Symfony REST API

LexikJWTAuthenticationBundle

Build Status
StyleCI
Scrutinizer Code Quality
SensioLabsInsight
Latest Stable Version

This bundle provides JWT (Json Web Token) authentication for your Symfony API.

It is compatible and tested with PHP 5.5, 5.6, 7.0, 7.1, HHVM on Symfony 3.4 and 4.0.

Documentation

The bulk of the documentation is stored in the Resources/doc directory of this bundle:

Community Support

Please consider opening a question on StackOverflow using the lexikjwtauthbundle tag, it is the official support platform for this bundle.

Github Issues are dedicated to bug reports and feature requests.

Contributing

See the CONTRIBUTING file.

Upgrading from 1.x

Please see the UPGRADE file.

Credits

License

This bundle is under the MIT license.

For the whole copyright, see the LICENSE file distributed with this source code.

Copyright (C) 2014-2016 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: ~
public_key_path: ~
pass_phrase:
token_ttl: 3600
encoder:
service: lexik_jwt_authentication.encoder.default
signature_algorithm: RS256
crypto_engine: openssl
user_identity_field: username
token_extractors:
authorization_header:
enabled: true
prefix: Bearer
name: Authorization
cookie:
enabled: false
name: BEARER
query_parameter:
enabled: false
name: bearer
  • minor #528 Release v2.5.3 (chalasr)
    By chalasr, 2 months ago
  • Release v2.5.3
    By chalasr, 2 months ago
  • Fix CHANGELOG
    By chalasr, 2 months ago
  • bug #525 Make openssl key loader service deprecated (Faecie)
    By chalasr, 2 months ago
  • Make openssl key loader service deprecated
    By , 2 months ago
  • bug #522 Fix clock skew + deprecation message (chalasr)
    By chalasr, 2 months ago
  • Improve deprecation message when using the default encoder service
    By chalasr, 2 months ago
  • Fix unused clock skew (bad rebase)
    By chalasr, 2 months ago
  • minor #518 Add UPGRADE file for v2.5 (chalasr)
    By chalasr, 2 months ago
  • Add UPGRADE file for v2.5
    By chalasr, 2 months ago
  • minor #517 Release v2.5.1 (chalasr)
    By chalasr, 2 months ago
  • Release v2.5.1
    By chalasr, 2 months ago
  • bug #515 Re-add namshi/jose as an hard requirement until 3.0 (chalasr)
    By chalasr, 2 months ago
  • Re-add namshi/jose as an hard requirement until 3.0
    By chalasr, 2 months ago
  • Fix CHANGELOG formatting
    By chalasr, 2 months ago
  • minor #512 Release v2.5.0 (chalasr)
    By chalasr, 2 months ago
  • Update CHANGELOG for v2.5.0
    By chalasr, 2 months ago
  • minor #511 Update documentation for v2.5 / Symfony 4 (chalasr)
    By chalasr, 2 months ago
  • Update documentation for v2.5 / Symfony 4
    By chalasr, 2 months ago
  • minor #510 Rename UserProviderWithPayloadSupportsInterface => PayloadAwareUserProviderInterface (chalasr)
    By chalasr, 2 months ago
  • Rename UserProviderWithPayloadSupportsInterface => PayloadAwareUserProviderInterface
    By chalasr, 2 months ago
  • feature #508 Replace namshi/jose by lcobucci/jwt (chalasr)
    By chalasr, 2 months ago
  • Replace namshi/jose by lcobucci/jwt
    By chalasr, 2 months ago
  • feature #485 Add a `lexik:jwt:generate-token` command (sroze)
    By chalasr, 3 months ago
  • Add a `lexik:jwt:generate-token` command
    By chalasr, 3 months ago
  • feature #369 Fix HMAC support (chalasr)
    By chalasr, 3 months ago
  • Support HMAC based signers from lcobucci/jwt
    By chalasr, 3 months ago
  • feature #492 [Feature] clock skew (patrickjDE, Patrick Josupeit)
    By chalasr, 3 months ago
  • implement clock skew for LcobucciJWSProvider, update unit tests
    By Patrick Josupeit, 3 months ago
  • minor #491 Fix note about authorization header under apache (pietereggink)
    By chalasr, 4 months ago