You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
I think that one solution could be that the initialize method in meli.rb could take an extra param for this purpose. With that, the auth_url inside the config.yml would just act as the default value.
The text was updated successfully, but these errors were encountered:
hi there!
I've been experiencing the same issue, just what i did was to overload in the class with my auth_url or creating my self a valid url.
Did you solved it already?
thanks 4 your reply @lubc! I've just modify every file as your PR, but im still getting redirected to BR. I also restared the server and hardcoded this in meli.rb . def auth_url(redirect_URI, iso_country_code = "UY")
and here
def self.auth_url_country(iso_country_code) #const_get "AUTH_URL_#{iso_country_code}" const_get "https://auth.mercadolibre.com.uy/authorization" end
It seems that it's not possible to dynamically change the
auth_url
setting because it's always using the value inconfig.yml
.I’m using this gem in an application with users from different countries (AR, CL, MX, CO), so I have one ML app for each of those countries.
But after running
meli.auth_url(callback)
it never works becauseauth_url
is always pointing to Brasil, and none of my ML Applications are from there.I think that one solution could be that the
initialize
method inmeli.rb
could take an extra param for this purpose. With that, theauth_url
inside theconfig.yml
would just act as the default value.The text was updated successfully, but these errors were encountered: