Coder Social home page Coder Social logo

Comments (8)

ro0NL avatar ro0NL commented on June 16, 2024 2

Well ... the composer constraint is defined as such ;)

"lexik/jwt-authentication-bundle": "^2.5@dev",

The interface was added in master (2.5@dev) at the time.

The good news is 2.5 was released just recently, so i'll update this ASAP. Also they changed the interface already 😅 lexik/LexikJWTAuthenticationBundle@de7b263

from symfony-demo-app.

ArturGoldyn avatar ArturGoldyn commented on June 16, 2024 1

For now @prybus fixed problem in our repo by using:
"lexik/jwt-authentication-bundle": "dev-master#a3d590ec57cac3a0b4618a1d817ceb8eb6f9141a",

from symfony-demo-app.

ro0NL avatar ro0NL commented on June 16, 2024

@prybus did you require lexik/jwt-authentication-bundle:dev-master?

The Lexik\Bundle\JWTAuthenticationBundle\Security\User\UserProviderWithPayloadSupportsInterface interface has not been tagged yet :(

from symfony-demo-app.

prybus avatar prybus commented on June 16, 2024

@ro0NL yes, I have this version jwt.
This is strange because in the catalog, I have this files

from symfony-demo-app.

ro0NL avatar ro0NL commented on June 16, 2024

Did you enable doctrine ORM? composer req orm

Basically we need a UserRepositoryInterface to autowire the user providers.

from symfony-demo-app.

prybus avatar prybus commented on June 16, 2024

@ro0NL this is very strange. I ran this next day and it worked. :)

from symfony-demo-app.

prybus avatar prybus commented on June 16, 2024

Hello @ro0NL ,

In your demo project, you use UserProviderWithPayloadSupportsInterface which does not exist in new JWT... where only PayloadAwareUserProviderInterface exist.

Therefore, when I run

composer update

an error occurs.

This will spread some 💖 by sending a ★ to the GitHub repositories of your fellow package maintainers.
Executing script assets:install --symlink --relative public [KO]
[KO]
Script assets:install --symlink --relative %PUBLIC_DIR% returned with error code 1
!!
!! In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:
!!
!! The service "security.authentication.provider.dao.api_login" has a dependen
!! cy on a non-existent service "MsgPhp\User\Infra\Security\Jwt\SecurityUserPr
!! ovider".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

from symfony-demo-app.

ro0NL avatar ro0NL commented on June 16, 2024

See msgphp/msgphp#163

from symfony-demo-app.

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.