MCPcopy
hub / github.com/authlib/authlib / token_from_fragment

Method token_from_fragment

authlib/oauth2/client.py:250–257  ·  view source on GitHub ↗
(self, authorization_response, state=None)

Source from the content-addressed store, hash-verified

248 )
249
250 def token_from_fragment(self, authorization_response, state=None):
251 token = parse_implicit_response(authorization_response, state)
252 if "error" in token:
253 raise self.oauth_error_class(
254 error=token["error"], description=token.get("error_description")
255 )
256 self.token = token
257 return token
258
259 def refresh_token(
260 self, url=None, refresh_token=None, body="", auth=None, headers=None, **kwargs

Callers 4

fetch_tokenMethod · 0.95
test_token_from_fragmentFunction · 0.95
test_token_from_fragmentFunction · 0.80
test_token_from_fragmentFunction · 0.80

Calls 2

parse_implicit_responseFunction · 0.85
getMethod · 0.45

Tested by 3

test_token_from_fragmentFunction · 0.76
test_token_from_fragmentFunction · 0.64
test_token_from_fragmentFunction · 0.64