Coder Social home page Coder Social logo

Comments (6)

Spomky avatar Spomky commented on May 21, 2024

Hi,

First of all, he purpose if this framework and the LexikJWTAuthenticationBundle are not the same.

The LexikJWTAuthenticationBundle is a bundle that provides a firewall to protect an API. The authentication of the users is based on JWT.
This one will help you to manage your keys, key sets or load/issue signed or encrypted tokens. It is supposed to be used by other bundles/applications such as LexikJWTAuthenticationBundle (e.g. spomky-labs/lexik-jose-bridge).

There is no concept of user/firewall/authentication... It can be used to create a secured instant messaging as well as an identity provider (OpenId Connect) or whatever you want that requires confidentiality or non-repudiation of the data.

Regarding the bundle, the documentation may be not clear about that, but the capabilities will depend on the components installed in your application.
If your application needs

  • to check claims or headers, you will need the web-token/jwt-checker component
  • to sign/verify tokens, you will need the web-token/jwt-signature component
  • to encrypt/decrypt tokens, you will need the web-token/jwt-encryption component
  • to manage keys/key sets, you will need the web-token/jwt-key-mgmt component
  • to use console commands, you will need the web-token/jwt-console component

In any case, you are right to say that a should wrote a list of the services made available by the bundle or the whole configuration reference. I will do it within the next weeks.

from jwt-framework.

ghola avatar ghola commented on May 21, 2024

Thank you for the reply and clarifications. Now I have a much better understanding on the purpose of this library.

from jwt-framework.

Spomky avatar Spomky commented on May 21, 2024

Closing as answered.
The documentation is improved step by step.
Feel free to re-open if needed.

from jwt-framework.

juanm18 avatar juanm18 commented on May 21, 2024

I have ran into issues when attempting to use this library as well. I am looking to use the JWE bundle i have installed it like shown in documentation composer require web-token/jwt-encryption.. When i try to create a token i get an error: Fatal error: Uncaught Error: Call to private Jose\Component\Core\AlgorithmManager::__construct() from invalid context in /Volumes/Source/authserver/asp.php:14 Stack trace: #0 {main}
any idea as to why i am running into this error? I know this issue is closed but did not want to open a new one for same issue

from jwt-framework.

Spomky avatar Spomky commented on May 21, 2024

Hi @juanm18,

Please see web-token/jwt-doc#11
The doc is now in line with the v1.0

from jwt-framework.

github-actions avatar github-actions commented on May 21, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from jwt-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.