akeneo / transporteo

Migration Tool for Akeneo PIM from 1.7 to 2.0
Other
8 stars 7 forks source link

Token expired #120

Open jon92 opened 6 years ago

jon92 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

jon92 commented 6 years ago

@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.