Add alternate redirect_uri
support for broken instances
#512
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pixelfed instances do not handle OOB OAuth correctly meaning you can't currently login to them using
toot
(e.g. pixelfed/pixelfed#2522 )This is a fudge to workaround that by allowing you to specify an alternate
redirect_uri
for broken servers which can take the HTTP redirect issued by Pixelfed and let you grab the code.If you don't have a handy HTTP server, you can use
http://localhost
and your browser (at least Safari and Chrome) will have the code in the address bar for copying and pasting intotoot
.I'm not 100% sure about how an empty
redirect_uri
is handled inload_app
- it feels like supplying-r
should set that instead of OOB on an app without an explicit setting but I don't think it's a situation that's going to crop up that often anyway.(Apologies if this is a Pythonic mess, it's not one of my main languages)