← Về thư mục
openai4s/server/sandbox_grants.py
- GrantError · class · L56-L57 — class GrantError(ValueError)
- Grant · class · L61-L66 — class Grant
- origin_pair · function · L77-L90 — def origin_pair(host: str, port: int) -> tuple[str, str]
- _sign · function · L93-L95 — def _sign(secret: str, payload: str) -> str
- _b64 · function · L98-L100 — def _b64(value: str) -> str
- _unb64 · function · L103-L105 — def _unb64(value: str) -> str
- mint · function · L108-L145 — def mint( secret: str, frame_id: str, *, app_origin: str, artifact_id: str, version_id: str, ttl_seconds: int = DEFAULT_TTL_SECONDS, now: float | None = None, ) -> str
- verify · function · L148-L196 — def verify(secret: str, token: str, *, origin: str, now: float | None = None) -> Grant
- split_path · function · L199-L211 — def split_path(path: str) -> tuple[str, str]
- grant_path · function · L214-L218 — def grant_path(token: str, ident: str) -> str