OAuth 1 request fails only with AsyncOAuth1Client #784
Unanswered
lilacpixel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Fairly new Python dev here--thanks for bearing with me!
I'm using Authlib to perform an API authorization in a desktop application. While the client is connecting, I'd like to display status info to the user, so I've been exploring different ways of handling this without blocking the UI from receiving updates.
When I use
OAuth1Session
within a threaded function, everything works as expected:However, if I try using
AsyncOAuth1Client
within an async function, the request fails, and the API responds with a nginx 403 page:It's quite possible that I'll just go back to what was working before, but I'd love to know what I might be doing wrong here.
Thanks for taking a look!
Beta Was this translation helpful? Give feedback.
All reactions