All Projects → Spomky-Labs → lexik-jose-bridge

Spomky-Labs / lexik-jose-bridge

Licence: MIT license
An Encoder for the LexikJWTAuthenticationBundle that uses web-token/jwt-framework

Programming Languages

PHP
23972 projects - #3 most used programming language
Gherkin
971 projects
Makefile
30231 projects
Twig
543 projects

Projects that are alternatives of or similar to lexik-jose-bridge

jwt-core
[READ-ONLY] Core component of the JWT Framework
Stars: ✭ 46 (+70.37%)
Mutual labels:  jose, jwk, jwe, jws, jwkset
jwt-signature
[READ ONLY] Signature component of the JWT Framework
Stars: ✭ 32 (+18.52%)
Mutual labels:  jose, jwk, jwe, jws, jwkset
Authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
Stars: ✭ 2,854 (+10470.37%)
Mutual labels:  jose, jwk, jwe, jws
node-jose-tools
Command line tools for node-jose's features
Stars: ✭ 29 (+7.41%)
Mutual labels:  jose, jwk, jwe, jws
Jwt Framework
JWT Framework
Stars: ✭ 577 (+2037.04%)
Mutual labels:  jose, jwe, jws
Jose
🔐 JSON Object Signing and Encryption Framework (JWT, JWS, JWE, JWA, JWK, JWKSet and more)
Stars: ✭ 479 (+1674.07%)
Mutual labels:  jose, jwe, jws
Jose
JSON Object Signing and Encryption for Node.js and the browser
Stars: ✭ 25 (-7.41%)
Mutual labels:  jose, jwe, jws
Jose
Universal "JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK with no dependencies
Stars: ✭ 1,029 (+3711.11%)
Mutual labels:  jose, jwe, jws
Joseswift
A framework for the JOSE standards JWS, JWE, and JWK written in Swift.
Stars: ✭ 114 (+322.22%)
Mutual labels:  jose, jwe, jws
rhonabwy
Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE and JWT
Stars: ✭ 33 (+22.22%)
Mutual labels:  jwk, jwe, jws
Go Jose
An implementation of JOSE standards (JWE, JWS, JWT) in Go
Stars: ✭ 1,849 (+6748.15%)
Mutual labels:  jose, jwe, jws
Jose2go
Golang (GO) implementation of Javascript Object Signing and Encryption specification
Stars: ✭ 150 (+455.56%)
Mutual labels:  jose, jwe, jws
Json Jwt
JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby
Stars: ✭ 262 (+870.37%)
Mutual labels:  jose, jwe, jws
Jose Jwt
Ultimate Javascript Object Signing and Encryption (JOSE) and JSON Web Token (JWT) Implementation for .NET and .NET Core
Stars: ✭ 692 (+2462.96%)
Mutual labels:  jose, jwe, jws
Cli
🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.
Stars: ✭ 2,151 (+7866.67%)
Mutual labels:  jose, jwe, jws
Jwt
Safe, simple and fast JSON Web Tokens for Go
Stars: ✭ 231 (+755.56%)
Mutual labels:  jose, jwe, jws
jwx
JSON/JWK/JWS/JWT/Base64 library in SPARK
Stars: ✭ 15 (-44.44%)
Mutual labels:  jose, jwk, jws
GuzzleBundleOAuth2Plugin
OAuth2 Plugin for GuzzleBundle
Stars: ✭ 13 (-51.85%)
Mutual labels:  bundle, symfony-bundle
breadcrumb-bundle
Symfony bundle for easy breadcrumbs management
Stars: ✭ 26 (-3.7%)
Mutual labels:  bundle, symfony-bundle
awsBundle
Symfony AWS Bundle (supports Symfony 2, 3 and 4)
Stars: ✭ 18 (-33.33%)
Mutual labels:  bundle, symfony-bundle

Jose Bridge for the LexikJWTAuthenticationBundle

Build Status Build Status Build Status

Build Status

Latest Stable Version Total Downloads Latest Unstable Version License

This Symfony Bundle provides a JWT Encoder for the LexikJWTAuthenticationBundle that uses the web-token/jwt-framework as JWT Creator/Loader.

The Release Process

The release process is described here.

Prerequisites

This library needs at least:

  • PHP 8.1+
  • Symfony 6.0+.

Installation

Symfony Flex

The preferred way to install this bundle is to rely on Symfony Flex and composer. Before installing the bundle, it is mandatory to declare specific Flex servers into your composer.json file.

composer config --json extra.symfony.endpoint '["https://api.github.com/repos/Spomky-Labs/recipes/contents/index.json?ref=main", "flex://defaults"]'

Or if you prefer, you can directly update your composer.json file.

{
    "name": "acme/application",
    "description": "ACME Application",
    "extra": {
        "symfony": {
            "endpoint": [
                "https://api.github.com/repos/Spomky-Labs/recipes/contents/index.json?ref=main",
                "flex://defaults"
            ]
        }
    }
}

Then, you can install the bundle. It will be automatically configured with the default configuration.

composer require spomky-labs/lexik-jose-bridge

Manual Installation

If you do not use Symfony Flex, then use Composer and install the bundle manually. Then, add this bundle and the web-token/jwt-framework bundles into your kernel:

<?php

use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            ...
            new Jose\Bundle\JoseFramework\JoseFrameworkBundle(),
            new SpomkyLabs\LexikJoseBundle\SpomkyLabsLexikJoseBundle(),
        ];

        return $bundles;
    }
}

Signature/Encryption Algorithms

This bundle only installs the RSA based signature algorithms (RS256, RS384 and RS512). If you need other signature algorithms (e.g EC based, HMAC) or if you want to use the encryption feature, you must install the corresponding packages:

  • Signature Algorithms
    • All: composer require web-token/signature-pack (not recommended)
    • HMAC: composer require web-token/jwt-signature-algorithm-hmac
    • ECDSA: composer require web-token/jwt-signature-algorithm-ecdsa
    • EdDSA: composer require web-token/jwt-signature-algorithm-eddsa
    • None: composer require web-token/jwt-signature-algorithm-none (not recommended)
    • Experimental: composer require web-token/jwt-signature-algorithm-experimental (not recommended)
  • Encryption Algorithms
    • All: composer require web-token/encryption-pack (not recommended)
    • Key Encryption:
      • ECDH-ES: composer require web-token/jwt-encryption-algorithm-ecdh-es
      • AES Key Wrapping: composer require web-token/jwt-encryption-algorithm-aeskw
      • RSA: composer require web-token/jwt-encryption-algorithm-rsa
      • AES GCM Key Wrapping: composer require web-token/jwt-encryption-algorithm-aesgcmkw
      • Direct: composer require web-token/jwt-encryption-algorithm-dir (not recommended)
      • PBES 2: composer require web-token/jwt-encryption-algorithm-pbes2 (not recommended)
    • Content Encryption:
      • AES GCM: composer require web-token/jwt-encryption-algorithm-aesgcm
      • AES CBC: composer require web-token/jwt-encryption-algorithm-aescbc
    • Experimental: composer require web-token/jwt-encryption-algorithm-experimental (not recommended)

Configuration

This bundle needs to be configured. Please see this page to know how to configure it.

How to use

There is nothing to do. Just use your application as usual.

Support

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of 🍻 or more!

Become a sponsor

Or

Become a Patreon

Contributing

If you discover a security vulnerability within the project, please don't use the bug tracker and don't publish it publicly. Instead, all security issues must be sent to security [at] spomky-labs.com.

Licence

This project is release under MIT licence.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].