MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_new_access_token

Method get_new_access_token

src/bcf/bcf/v3/bcfapi.py:119–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 )
118
119 def get_new_access_token(self) -> None:
120 headers = self._get_access_token_headers()
121 self.set_tokens_from_response(
122 requests.post(
123 self.token_endpoint,
124 data={
125 "grant_type": "refresh_token",
126 "refresh_token": self.refresh_token,
127 },
128 headers=headers,
129 ).json()
130 )
131
132 def _get_access_token_headers(self) -> dict[str, str]:
133 auth_string = f"{self.client_id}:{self.client_secret}"

Callers

nothing calls this directly

Calls 3

postMethod · 0.45

Tested by

no test coverage detected