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

Token expired #120

Open
jon92 opened this issue Nov 22, 2017 · 3 comments
Open

Token expired #120

jon92 opened this issue Nov 22, 2017 · 3 comments

Comments

@jon92
Copy link

jon92 commented Nov 22, 2017

Hello,
I'm migrating a 1.7 Akeneo EE with hybrid storage to Akeneo 2.0.
After one hour it ends with "Akeneo\Pim\Exception\UnprocessableEntityHttpException The access token provided has expired." error message.

I think it's because OAuth2 authentication token expired, but I find it strange that no automatic refresh process is set by default. Do I need to configure something ?

I found a workaround by manually increasing token expiration time but it's not very "clean".

@momoss
Copy link
Contributor

momoss commented Nov 22, 2017

Hello @jon92,

Thanks for raising this issue.
It seems weird because this kind of authentication issue is managed by the API client.

We will dig a bit more.

Best regards.

@mikeburns
Copy link

@jon92 where did you increase the token time? I've got the same problem.

@jon92
Copy link
Author

jon92 commented Feb 20, 2018

@mikeburns I change these constants : DEFAULT_ACCESS_TOKEN_LIFETIME and DEFAULT_EXPIRES_IN in OAuth2/OAuth2 and OAuth2/OAuth2Client classes. I made this changes in both 1.7 and 2.0 PIM.

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

3 participants