redditwarp.dark.core.authorizer_SYNC#

class redditwarp.dark.core.authorizer_SYNC.Authorizer(token_client: TokenObtainmentClient | None = None, token: Token | None = None)[source]#

Bases: object

token_client: TokenObtainmentClient | None#
token: Token | None#
renewal_time: float | None#
renewal_skew: float#
expires_in_fallback: int | None#
time_func: Callable[[], float]#
authorization_header_name: str#
has_token_client() bool[source]#
fetch_token_client() TokenObtainmentClient[source]#
set_token_client(value: TokenObtainmentClient | None) None[source]#
has_token() bool[source]#
fetch_token() Token[source]#
set_token(value: Token | None) None[source]#
renew_token() None[source]#
time() float[source]#
should_renew_token() bool[source]#
can_renew_token() bool[source]#
attain_token() Token[source]#
get_header_entry() tuple[str, str][source]#
prepare_requisition(requisition: Requisition) None[source]#
prepare_headers(headers: MutableMapping[str, str]) None[source]#
class redditwarp.dark.core.authorizer_SYNC.Authorized(handler: Handler, authorizer: Authorizer)[source]#

Bases: DelegatingHandler

authorizer: Authorizer#