Giter Club home page Giter Club logo

Comments (5)

Spomky avatar Spomky commented on May 23, 2024

🤔...ok I will try to reproduce that bug and find the issue

from lexik-jose-bridge.

Spomky avatar Spomky commented on May 23, 2024

Ok I can reproduce it when

  • lexik_jose.key_set_remote parameters are set
  • jose.jku_factory is not enabled

Please make sure to install a PSR17/PSR18 library such as nyholm/psr7 and use the following configuration file config/packages/jose.yaml:

jose:
    jku_factory:
        enabled: true
        client: 'Psr\Http\Client\ClientInterface'
        request_factory: 'Psr\Http\Message\RequestFactoryInterface'

This should be fine for the default configuration but distant key set:

lexik_jose:
    ttl: 1000
    server_name: '%env(SL_JOSE_BRIDGE_SERVER_NAME)%'
    #key_set: '%env(SL_JOSE_BRIDGE_SIGNATURE_KEYSET)%'
    key_index: '93wgUTMbJm8ZN7MUTQx7xYRpifPiY7GAaAZKTZ9Y3MI'
    signature_algorithm: 'HS512'
    key_set_remote:
        type: 'jku'
        url: 'https://my.auth.server/jwks'

Side note: the documentation says HttpBundle is required, which is not the case anymore.

from lexik-jose-bridge.

drupol avatar drupol commented on May 23, 2024

Thanks for your support @Spomky !

from lexik-jose-bridge.

luca-simonetti avatar luca-simonetti commented on May 23, 2024

that doesn't work. It keeps saying:

Cannot instantiate interface Psr\Http\Client\ClientInterface  

from lexik-jose-bridge.

Spomky avatar Spomky commented on May 23, 2024

@luca-simonetti,

It looks like you have not installed or correctly configure your Http Client.
Did you installed nyholm/psr7 or similar?

from lexik-jose-bridge.

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.