MCPcopy
hub / github.com/authlib/authlib / userinfo

Method userinfo

authlib/integrations/base_client/sync_openid.py:31–37  ·  view source on GitHub ↗

Fetch user info from ``userinfo_endpoint``.

(self, **kwargs)

Source from the content-addressed store, hash-verified

29 return jwk_set
30
31 def userinfo(self, **kwargs):
32 """Fetch user info from ``userinfo_endpoint``."""
33 metadata = self.load_server_metadata()
34 resp = self.get(metadata["userinfo_endpoint"], **kwargs)
35 resp.raise_for_status()
36 data = resp.json()
37 return UserInfo(data)
38
39 def parse_id_token(
40 self, token, nonce, claims_options=None, claims_cls=None, leeway=120

Callers 2

run_fetch_userinfoFunction · 0.45
test_fetch_userinfoFunction · 0.45

Calls 3

UserInfoClass · 0.90
load_server_metadataMethod · 0.45
getMethod · 0.45

Tested by 2

run_fetch_userinfoFunction · 0.36
test_fetch_userinfoFunction · 0.36