http.oidc.userinfo

http.oidc

userinfo(self, access_token, sub) -> claims, err

Fetch the userinfo claims of an access token

GET at the userinfo endpoint with the token as a Bearer credential. The body must be a JSON object with a string sub; given sub, the ID token's, the two must match (OIDC Core §5.3.2). Refused when the discovery document names no userinfo endpoint. Runs discover.