Skip to content

docs: explain how to read custom claims in the OIDC client - #961

Merged
lepture merged 2 commits into
authlib:mainfrom
Xander-AJ:docs/oidc-custom-claims
Oct 19, 2026
Merged

lepture merged 2 commits into
authlib:mainfrom
Xander-AJ:docs/oidc-custom-claims

Conversation

@Xander-AJ

@Xander-AJ Xander-AJ commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #621.

The OIDC client docs show token['userinfo'] but not how to get non-standard claims. This adds a "Custom claims" section: UserInfo keeps every claim from the validated id_token (I confirmed custom keys are preserved), and when the provider only returns a claim from the userinfo endpoint or behind a scope, how to request the scope in client_kwargs and call userinfo(token=token).

Docs only. Includes a changelog fragment.

Show that token['userinfo'] keeps every claim of the id_token, and how to request scopes and call the userinfo endpoint when the provider does not put a claim in the id_token.

Closes authlib#621
@lepture
lepture merged commit 9c7b25d into authlib:main Oct 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing OIDC client documentation on custom claims

2 participants