eggman87 / ezimgur-open

ezimgur android app
2 stars 1 forks source link

login API no longer works? #2

Open CristiCimpianu opened 6 years ago

CristiCimpianu commented 6 years ago

I'm trying to login, the app opens my browser (opera) with a link containing redirect_uri=oauthflow-imgur://callback&response_type=token. After entering user & pass the api responds with a json saying the redirect url is invalid.

{"data":{"error":"The redirect URI provided is missing or does not match","request":"\/oauth2\/authorize","method":"POST"},"success":false,"status":400}

Did the API change or is it something specific for my phone setup?

eggman87 commented 6 years ago

Sorry @CristiCimpianu I never saw this, do not really maintain this anymore. Do you have tokens setup? You need a CLIENT_ID and CLIENT_SECRET in ImgurApiConstants....the app does still work in production (play store).

CristiCimpianu commented 6 years ago

Hi @eggman87 I'm using the version from play store. If you say it works for you then it must be something specific to my phone. Thanks for your reply and for the app. I'll continue using it without logging in.

eggman87 commented 6 years ago

Sorry @CristiCimpianu I misread the error message. Login does appear to be broken now. I suspect something changed in imgurs API. I will try to see if it is a quick fix and patch if so.

eggman87 commented 6 years ago

@CristiCimpianu a temporary fix is to remove redirect_uri=oauthflow-imgur://callback from the browser url after attempting to login, hit enter on the browser, then allow. For some reason imgur is saying the redirect URI we are sending since the app was created no longer matches the setting in imgur (I suspect something is going with URL encoding that was changed on the api). I might hotpatch this if I get some free time soon.