-
Notifications
You must be signed in to change notification settings - Fork 336
Auth call timeout option #535
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
Comments
I found a few problems with this issue:
|
We don't make any direct HTTP requests in We do pass in a |
It looks like google.oauth2.id_token.verify_token() just takes a generic |
Additionally, it looks like this call (made when |
I'd rather implement one of the workarounds (e.g. subclassing the
That call goes through our own
firebase-admin-python/firebase_admin/_http_client.py Lines 94 to 118 in 873aa7c
But the entire |
Yes, that's exactly what I meant. It is that call that keeps hanging on the service we are having problems with. We have had to temporarily disable |
Ok, thanks for clarifying. I can hopefully find some time to fix that next week. You can also help speed things along by sending a PR. |
@hiranya911 I think I've got a fix for the simpler part (respecting app options httpTimeout in UserManager), but I'm having trouble pushing. Last I committed to a google-owned repo (python spanner), the workflow was to fork the repo. There aren't specific instructions covering this in the contributor guide. This is the error I'm getting:
If you could help me get this resolved, I will happily submit a PR. |
@daniellehanks you need to fork our repo and submit a PR through that. |
It might be good to put that in the contributor guide. |
This fix was included in the last release. |
Thanks for the swift release. We've just updated 3 of our services in production. My PR though only added a timeout on one of the two outgoing network calls. There still needs to be timeout instrumentation on the transport given to |
Thanks for getting the other half patched @hiranya911! |
Using firebase-admin sdk v4.0.0 for python3.8.
We have recently noticed that one of our time sensitive services is struggling due to long calls on
auth.verify_id_token
function. We'd like the option to have a timeout for the actual request call that happens here, since it does appear that the google-auth library allows you to set a timeout to the request. We do use thehttpTimeout
on initialization of the app already but it appears this config option is not used at all when making the request.The text was updated successfully, but these errors were encountered: