Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via composer

lexik/jwt-authentication-bundle v2.20.3

This bundle provides JWT authentication for your Symfony REST API
Package summary
Share
0
issues
2
licenses
37
MIT
1
BSD-3-Clause
Package created
10 Apr 2014
Version published
14 Dec 2023
Maintainers
2
Total deps
38
Direct deps
14
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
37 Packages, Including:
lcobucci/clock@3.2.0
lexik/jwt-authentication-bundle@v2.20.3
namshi/jose@7.2.3
psr/clock@1.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/clock@v7.0.7
symfony/config@v7.0.7
symfony/dependency-injection@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/filesystem@v7.0.7
symfony/http-foundation@v7.0.7
symfony/http-kernel@v7.0.7
symfony/password-hasher@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php56@v1.20.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/process@v7.0.7
symfony/property-access@v7.0.7
symfony/property-info@v7.0.7
symfony/security-bundle@v7.0.7
symfony/security-core@v7.0.7
symfony/security-csrf@v7.0.7
symfony/security-http@v7.0.7
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
symfony/translation-contracts@v3.5.0
symfony/var-dumper@v7.0.7
symfony/var-exporter@v7.0.7

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
lcobucci/jwt@5.3.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

14
All Dependencies CSV
β“˜ This is a list of lexik/jwt-authentication-bundle 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
lcobucci/clock3.2.02.92 kBMIT
prod dev
lcobucci/jwt5.3.0-BSD-3-Clause
prod
namshi/jose7.2.343.97 kBMIT
prod
symfony/configv7.0.7-MIT
prod dev
symfony/dependency-injectionv7.0.7-MIT
prod dev
symfony/deprecation-contractsv3.5.0-MIT
prod dev
symfony/event-dispatcherv7.0.7-MIT
prod dev
symfony/filesystemv7.0.7-MIT
prod dev
symfony/http-foundationv7.0.7-MIT
prod dev
symfony/http-kernelv7.0.7-MIT
prod dev
symfony/property-accessv7.0.7-MIT
prod dev
symfony/security-bundlev7.0.7-MIT
prod
symfony/translation-contractsv3.5.0-MIT
prod dev
symfony/var-dumperv7.0.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does lexik/jwt-authentication-bundle do?

The LexikJWTAuthenticationBundle is a powerful tool that provides JWT (JSON Web Token) authentication for your Symfony API. It adds an extra layer of security to your REST API, making it more robust and secure. The bundle is compatible and has been tested with PHP 7.1+ on Symfony 4.x, 5.x, and 6.x. It's a must-have addition for developers seeking to build secure Symfony APIs.

How do you use lexik/jwt-authentication-bundle?

To use the LexikJWTAuthenticationBundle, you need to first meet the prerequisites, install and configure the bundle in your Symfony project.

Here is a simple step-by-step process to set it up:

  1. Install the bundle via Composer by running the command composer require lexik/jwt-authentication-bundle.
  2. Follow the configuration steps in the documentation. This involves setting up the paths to the generated keys and the passphrase used to sign the tokens.
  3. Implement a user provider or ensure your User class implements the UserInterface.

An example of creating an authenticated user with a JWT Token:

$user = new User(); // your User class
$jwt = $this->get('lexik_jwt_authentication.encoder')
    ->encode(['username' => $user->getUsername()]);

Remember to catch any exceptions that may occur during authentication process.

Where are the lexik/jwt-authentication-bundle docs?

The LexikJWTAuthenticationBundle documentation is stored in the Resources/doc directory of the bundle. It covers everything from getting started, configuration, and usage, to further documentation, such as data customization, functional testing, working with CORS requests, JWT encoder service customization, extending authenticator, creating JWT tokens programmatically, and a database-less user provider.

You can directly access the docs by following this path in the bundle's main directory: [Resources/doc](Resources/doc/index.rst).

For extra support, the LexikJWTAuthenticationBundle community advise users to ask questions on StackOverflow using the lexikjwtauthbundle tag, as it is the official support platform for this bundle.