Comments (5)
🤔...ok I will try to reproduce that bug and find the issue
from lexik-jose-bridge.
Ok I can reproduce it when
lexik_jose.key_set_remote
parameters are setjose.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.
Thanks for your support @Spomky !
from lexik-jose-bridge.
that doesn't work. It keeps saying:
Cannot instantiate interface Psr\Http\Client\ClientInterface
from lexik-jose-bridge.
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)
- When keys are changed by new ones, valid tokens are rejected
- Use RotatableJWKSet and add a console command for key rotation HOT 1
- no encoder HOT 8
- Provide Recipe HOT 1
- Cannot use key ID as key_index when using LexikJoseEncoder HOT 3
- Allow loading keysets from files HOT 2
- issuer same as audience HOT 3
- Flex recipe - generated key_index HOT 2
- Bundle upgrade HOT 1
- JWT Token is always invalid HOT 4
- Missing dependency for Assert in 3.0.0 HOT 7
- Invalid definition for service Jose\Bundle\JoseFramework\DataCollector\CheckerCollector: argument 2 of Jose\Bundle\JoseFramework\DataCollect or\CheckerCollector::addHeaderCheckerManager() HOT 2
- Do not override lexik_jwt_authentication.encoder.service automatically HOT 1
- Add support of multi-environment configuration. HOT 3
- Question: Symfony 6 support HOT 2
- TTL Token must be int but string given HOT 5
- Is it possible to call a service for key_set? HOT 2
- Symfony flex endpoint order HOT 2
- Add tests to verify LexikJWTAuthenticationBundle Data customization and validation are not broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lexik-jose-bridge.