docs icon indicating copy to clipboard operation
docs copied to clipboard

Localhost redirect URI ignoring port

Open rmichiels opened this issue 2 years ago • 3 comments

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?

rmichiels avatar Apr 11 '23 18:04 rmichiels

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!

cyle avatar Apr 11 '23 19:04 cyle

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

rmichiels avatar Apr 12 '23 14:04 rmichiels

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

cyle avatar Apr 24 '23 13:04 cyle