tumblr / docs

Tumblr's public platform documentation.
Apache License 2.0
108 stars 26 forks source link

Localhost redirect URI ignoring port #104

Open rmichiels opened 1 year ago

rmichiels commented 1 year ago

Hi,

i've been trying to make a .net blazor application to consume the tumblr api, and i've been working on moving through the oauth2 flow. However, it seems that during the step in which i am supposed to get the authorization code needed to get the access token, the redirect url, in my case "https://localhost:7165/redirect", seems to cut off the the port number, and it just redirects to "localhost/redirect".

Am I missing something? am i going about this the wrong way? Or is this by design?

cyle commented 1 year ago

Hello @rmichiels -- looks like you found a bug! we're unintentionally stripping the port away. i'll file a bug ticket for this and we'll update you here when it's fixed in production. thanks for flagging this!

rmichiels commented 1 year ago

Huzzah, a valuable contribution! As a workaround, should anyone come across the same issue, you can host your webapp on the default https port, 443.

In .net, this can be done by changing the 'applicationUrl' under the 'profiles' section in the launchsettings.json file.

image

image

cyle commented 1 year ago

This should be fixed now -- @rmichiels can you give it a test?