Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localhost redirect URI ignoring port #104

Open
rmichiels opened this issue Apr 11, 2023 · 3 comments
Open

Localhost redirect URI ignoring port #104

rmichiels opened this issue Apr 11, 2023 · 3 comments

Comments

@rmichiels
Copy link

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
Copy link
Member

cyle commented Apr 11, 2023

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
Copy link
Author

rmichiels commented Apr 12, 2023

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
Copy link
Member

cyle commented Apr 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants