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
A `requests.auth.AuthBase` adapter that integrates an `AuthManager`
55
-
into a `requests.Session` to automatically attach the appropriate
56
-
Authorization header to every request.
53
+
"""A `requests.auth.AuthBase` adapter that integrates an `AuthManager` into a `requests.Session` to automatically attach the appropriate Authorization header to every request.
57
54
58
55
This adapter is useful when working with `requests.Session.auth`
59
56
and allows reuse of authentication strategies defined by `AuthManager`.
60
57
"""
58
+
61
59
def__init__(self, auth_manager: AuthManager):
62
60
"""
63
-
Args:
64
-
auth_manager (AuthManager): An instance of an AuthManager subclass.
61
+
Initialize AuthManagerAdapter.
62
+
63
+
Args:
64
+
auth_manager (AuthManager): An instance of an AuthManager subclass.
0 commit comments