gregurco / guzzlebundleoauth2plugin Goto Github PK
View Code? Open in Web Editor NEWOAuth2 Plugin for GuzzleBundle
License: MIT License
OAuth2 Plugin for GuzzleBundle
License: MIT License
Hi,
I set "verify" to false but OAuth2Plugin seems do not use the good client.
In symfony 5.3 SessionInterface as a service was deprecated and in 6.0+ is no longer defined as a service in the container. Using this bundle with a Symfony ^6.0 will throw a DI ServiceNotFoundException when we get to https://github.com/gregurco/GuzzleBundleOAuth2Plugin/blob/master/src/Middleware/PersistentOAuthMiddleware.php#L33 and try to get the service reference from the container.
In Symfony 6.3, my kernel.php looks like this:
<?php
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
}
The foreach loop referenced in the readme is not there.
So, how do I get the plugin installed?
Or is this plugin not compatible with Symfony 6 yet?
I encountered a problem with caching tokens.
I change option in config like in documentation:
persistent: true
And the problem is:
Cache item "oauth.token.api_sso" comes from a non tag-aware pool: you cannot tag it.
I commented line 83 in file: vendor/gregurco/guzzle-bundle-oauth2-plugin/src/Middleware/CachedOAuthMiddleware.php
Also I observed that this error is trrigerred only when item is inserted to cache for the first time. When the item is in cache and I uncommented the line everything is working.
Symfony: 4.2.2
GuzzleBundleOAuth2Plugin: 1.0.7
Hello,
I just wonder if there is a possibility to have guzzle 7 dependency (like in cache plugin) or if there is a reason not to ?
Thanks
is it possible to have default token storage/cache to prevent each api call producing new token?
When I try to use it with Symfony for I got the following error:
Unrecognized option "oauth2" under "eight_points_guzzle.clients.my_client.plugin"
As of today grant_type
takes only a class string. It would be good if it could take a service as well or a way to inject parameters. For example I am trying to plug the OAuth mecanism with auth0. They need an extra parameter wich is called audience
. We could just integrate it as part of the config but either we do not validate the parameters or we do as said before.
There are plenty of ways to implement the OAuth flow and it seems it can be very tricky to get it done as of today. In the example I gave earlier I have to create a CompilerPass to get the service created dynamically with the grant_type
class and inject it with the parameter I need.
Hi,
We have an issue with using the AuthorizationCode GrantType because of the "code" option.
It is required to use this GrantType, but the code option cannot be added due to the configuration.
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.