waldo2188 / openidconnectrelyingpartybundle Goto Github PK
View Code? Open in Web Editor NEWOpenId Connect Relying Party Bundle for Symfony 2
License: MIT License
OpenId Connect Relying Party Bundle for Symfony 2
License: MIT License
Hi
I have created a brand new symfony (3.3.4) project and started to copy-paste from your installation guide.
everything was fine, until configuring the security.yml
Once done, I get the following error message :
The service "security.firewall.map.context.secured_area" has a dependency on a non-existent service "security.context".
in CheckExceptionOnInvalidReferenceBehaviorPass.php (line 31)
any idea ?
Hi,
Your bundle uses an non existent service in Symfony 2.3. The stack error looks like this:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "waldo_oic_rp.logout" has a dependency on a non-existent service "security.token_storage".
It seems that "security.token_storage" service comes from the Symfony 2.6 security improvements. I think the require symfony version should be update to >= 2.6
in composer.json file.
If the jwk returned from open id server contains no "use" property, signature validation fails with InvalidIdSignatureException.
Seems to be due to OICResponseHandler::verifySignedJwt():
$key = $jwkSet->filterJwk("use", \JOSE_JWK::JWK_USE_SIG);
That's the JWKSet I had:
JOSE_JWKSet Object
(
[keys] => Array
(
[0] => JOSE_JWK Object
(
[components] => Array
(
[alg] => RS256
[e] => AQAB
[n] => 23zs5 ... 1pB-CP0
[kty] => RSA
[kid] => rsa1
)
)
)
)
As far as I understand, the "use" part is optional.
If we follow the install documentation, we get an error:
There is no extension able to load the configuration for "waldo_oic_rp"
because the bundle is not registered in AppKernel.
It needs "gree/jose": "0.2" in require
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.