Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth cache is not used with trusted_merchant #102

Open
peterpp opened this issue Jan 24, 2019 · 0 comments
Open

OAuth cache is not used with trusted_merchant #102

peterpp opened this issue Jan 24, 2019 · 0 comments

Comments

@peterpp
Copy link

peterpp commented Jan 24, 2019

If I use trusted_merchant OAuth, caching is not used at all. Therefore, every request with the same email and ext_customer_id makes new call to the API and returns new access token. Each token is used just once and then forgotten. The problem is in OpenPayU_Oauth::getAccessToken – there is a condition for trusted_merchant to skip the cache.

In my opinion, OAuth cache should be more universal LRU cache that will allow to store all kinds of access tokens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant