You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and finally the request to http%253A%2F%2Flocalhost%253A8000%2Fuser%2F
This is creating 2 issues, the redirect_to option is not working because it's not matching the allowed redirect urls from Supabase and second, the redirect url is incorrect.
To Reproduce
Sign in with github or any provider and send a redirect_to value
Thanks for the detailed report - feel free to file a PR, else will look at it when a slot frees up! Finishing up a tutorial on how to use OAuth with Django so hoping to fix that before the tutorial goes out yeah.
Bug report
Describe the bug
I'm trying to use the
redirect_to
option when authorizing with provider in sign_in_with_oauth but the URL str value is encoded twice:This is creating 2 issues, the redirect_to option is not working because it's not matching the allowed redirect urls from Supabase and second, the redirect url is incorrect.
To Reproduce
We can debug the value from the _get_url_for_provider function in https://github.com/supabase-community/gotrue-py/blob/3ec751bbc97f6917fd7c3aace24dfb67e23efbda/gotrue/_sync/gotrue_client.py#L825-L833
at the start of the function the values are:
quote(v)
the params are encoded:https://github.com/supabase-community/gotrue-py/blob/3ec751bbc97f6917fd7c3aace24dfb67e23efbda/gotrue/_sync/gotrue_client.py#L830-L831
urlencode(params)
encodes all params again:https://github.com/supabase-community/gotrue-py/blob/3ec751bbc97f6917fd7c3aace24dfb67e23efbda/gotrue/_sync/gotrue_client.py#L832-L833
⚠ Note: I'm using the _sync client, but the same steps are in the _async.
The text was updated successfully, but these errors were encountered: