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

Method userinfo

authlib/integrations/base_client/async_openid.py:33–39  ·  view source on GitHub ↗

Fetch user info from ``userinfo_endpoint``.

(self, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

UserInfoClass · 0.90
load_server_metadataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected