MCPcopy Create free account
hub / github.com/GerevAI/gerev / BookStackAuth

Class BookStackAuth

app/data_source/sources/bookstack/bookstack.py:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class BookStackAuth(AuthBase):
22 def __init__(self, token_id, token_secret, header_key="Authorization"):
23 self.header_key = header_key
24 self.token_id = token_id
25 self.token_secret = token_secret
26
27 def __call__(self, r):
28 r.headers[self.header_key] = f"Token {self.token_id}:{self.token_secret}"
29 return r
30
31
32class BookStack(Session):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected