MCPcopy Create free account
hub / github.com/authlib/authlib / __init__

Method __init__

authlib/oauth2/auth.py:92–96  ·  view source on GitHub ↗
(self, token, token_placement="header", client=None)

Source from the content-addressed store, hash-verified

90 SIGN_METHODS = {"bearer": add_bearer_token}
91
92 def __init__(self, token, token_placement="header", client=None):
93 self.token = OAuth2Token.from_dict(token)
94 self.token_placement = token_placement
95 self.client = client
96 self.hooks = set()
97
98 def set_token(self, token):
99 self.token = OAuth2Token.from_dict(token)

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected