Giter VIP home page Giter VIP logo

guzzlebundleoauth2plugin's People

Contributors

chrisivens avatar eugenganshorn avatar gregurco avatar moux2003 avatar neirda24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

guzzlebundleoauth2plugin's Issues

Bad client used ?

Hi,

I set "verify" to false but OAuth2Plugin seems do not use the good client.

How to install when lines referenced in the README don't exist?

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?

Problem with "persistent" caching token

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.

The temporary fix I made:
image

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

Guzzle 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

token storage

is it possible to have default token storage/cache to prevent each api call producing new token?

Error when using with Symfony 4

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"

Configuration too restrictive

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.

Cannot use AuthorizationCode due to code option

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.

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.