ombulabs / mercadopago

Gem to communicate with the MercadoPago API
33 stars 22 forks source link

Problems with authentication? #37

Closed fzuppa closed 6 years ago

fzuppa commented 6 years ago

I haven't been able to log in for the last couple of days. It seems the problem is that refresh_token is taken as mandatory, but oauth is not returning it (copied the responde below).

Are you aware of the problem? Planning to solve it?

{"access_token":"XXXX","live_mode":true,"user_id":xxxxx,"token_type":"bearer","expires_in":21600,"scope":"offline_access payments read write"}%

Juanmcuello commented 6 years ago

Same problem here. We are using this branch meanwhile, which includes this commit that fixes the issue.

It's been working ok at the moment.

etagwerker commented 6 years ago

Just merged the commit by @Miguelcldn. Please test again using master. It should work.

fzuppa commented 6 years ago

Works perfect. Thanks a log guys

Miguelcldn commented 6 years ago

Hey guys, I just created a PR removing the temporal comment about the refresh_token issue. I you want we can discuss there what to do next. Mercadolibre told me it was due a bug in their API and it's now fixed, but in my opinion refresh_token is not that required.