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

Handle 307 redirects in hc-login (#35) #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jorritolthuis
Copy link

Properly handle 307 redirects, in the same way 302 redirects are already handled. See issue #35 and https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_redirection.

@pmagyar
Copy link

pmagyar commented Dec 10, 2023

Had the same issue too. Testing is tricky but the code looks fine and does not break something else.

@jorritolthuis
Copy link
Author

I agree that testing is a problem. I was not able to find any documentation for singlekey-id.com, so best I can do is assume they strictly follow Oauth. But Oauth should never return a 307, so I'm slightly confused there.

In either case the hc-login script doesn't finish successfully for me. So I can't guarantee that 307 forward does/doesn't get me closer to a working setup.

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

Successfully merging this pull request may close these issues.

2 participants