Class OidcClaimsRequest

Assembly: redb.Identity.Core.dll

The parsed OIDC claims request parameter (OpenID Connect Core 1.0 §5.5) — the RP's
per-claim request, as opposed to the coarse per-scope request.

Two top-level members are meaningful: userinfo (deliver via /connect/userinfo) and
id_token (embed in the id_token). §5.5 allows other members to be defined by
extensions; we ignore what we do not understand rather than rejecting the request, because
rejecting would break an RP that added a member some other OP understands.


This type is protocol-only: it is a parse of one request parameter and is never persisted.
It carries no storage concern and no HTTP concern — the HTTP layer is a façade that maps the
query string into the exchange body; the meaning of claims is decided here, in Core.

public sealed class OidcClaimsRequest

Inheritance

Object→OidcClaimsRequest

Properties

IdToken

Claims the RP asked to have embedded in the id_token.

public IReadOnlyDictionary<string, OidcClaimsRequestEntry> IdToken { get; }

IsEmpty

True when the parameter carried nothing we act on.

public bool IsEmpty { get; }

UserInfo

Claims the RP asked to be able to fetch from /connect/userinfo.

public IReadOnlyDictionary<string, OidcClaimsRequestEntry> UserInfo { get; }

Methods

TryParse(string?, out OidcClaimsRequest?, out string?)

Parses the raw claims parameter. Returns false with an error

public static bool TryParse(string? raw, out OidcClaimsRequest? request, out string? error)