Closed DaGuich closed 2 years ago
Right now we are only allowing OAuth2PasswordBearer
. Maybe we want to be a little bit more flexible there and use the base class of OAuth2PasswordBearer
(which is OAuth2 I think...)
Right now we are only allowing
OAuth2PasswordBearer
. Maybe we want to be a little bit more flexible there and use the base class ofOAuth2PasswordBearer
(which is OAuth2 I think...)
We can think of supporting this, then we would need to somehow make the user_auth_scheme
method extendable 6 customizable so that one can use different auth schemes too. I will just open an issue, anyone interested in supporting this can then pick this up.
FastAPIs
Depends
function expects a callable.get_current_user
is returning a callable but its type hint did not reflect this.It's just a small change but PyCharms type checker annoyed me...