Comments (4)
Hi,
I you use RSA-based signatures (RSxxx or PSxxx), please make sure either GMP or BCMATH extension is installed.
from lexik-jose-bridge.
Hi,
I you use RSA-based signatures (RSxxx or PSxxx), please make sure either GMP or BCMATH extension is installed.
Hi,
OK I'll double check it, in the phpinfo() dump I figured out this line:
GNU GMP support | Stanislav Malyshev |
---|
What about the fake JWKS (touched) ? why the bridge validate the JWT whatever the value of the key in JWKS ? maybe it ignores this stage if GMP or BCMATH extension is not installed...
from lexik-jose-bridge.
Hi,
I checked also Bitnami/Symfony:6.3 docker image, I got the following with phpinfo() dump.
BCMath support | enabled |
---|
GNU GMP support | Stanislav Malyshev |
---|
gmp support | enabled |
---|---|
GMP version | 6.2.1 |
from lexik-jose-bridge.
I solved the problem, no latency after installing BCMATH and GMP extensions in my PHP:8.2-FPM image :)
But I'm still wondering why fake JWKS pass instead of returning 401 ! any idea @Spomky ?
which attribute of JWKS is used to verify the JWT signature, "x5c" or "n" ? when I modify "n" the validation doesn't work but it works for any "x5c" fake value. I think the library ignore "x5c" when "n" is provided. do you confirm that ?
My POC is based on this example => https://curity.io/resources/learn/symfony-api/#secure-endpoints-with-jwts
from lexik-jose-bridge.
Related Issues (20)
- 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
- Missing dependency for jose.key_set.lexik_jose_bridge.signature HOT 5
- 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
- Multi-value for audience param HOT 2
- mutli-value audience parameter ?
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.