MCPcopy Create free account
hub / github.com/authlib/authlib / userinfo

Method userinfo

authlib/integrations/base_client/async_openid.py:34–40  ·  view source on GitHub ↗

Fetch user info from ``userinfo_endpoint``.

(self, **kwargs)

Source from the content-addressed store, hash-verified

32 return jwk_set
33
34 async def userinfo(self, **kwargs):
35 """Fetch user info from ``userinfo_endpoint``."""
36 metadata = await self.load_server_metadata()
37 resp = await self.get(metadata["userinfo_endpoint"], **kwargs)
38 resp.raise_for_status()
39 data = resp.json()
40 return UserInfo(data)
41
42 async def parse_id_token(
43 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