Documentation
¶
Overview ¶
Package claims generates deterministic OIDC profile claims for idemtoken.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeterministicID ¶
DeterministicID returns a subject ID derived deterministically from the input. format selects the style: "base32" for a 16-char lowercase base32 string, anything else (including "petname") for a three-word slug.
func FakeClaims ¶
func FakeClaims(client, sub string, scopes map[string]bool, overrides map[string]any) map[string]any
FakeClaims generates deterministic OIDC profile claims seeded by client+sub. Only claims belonging to the requested scopes are returned. Claims already present in overrides are skipped -- caller wins.
func ParseScopes ¶
ParseScopes returns a set of requested scopes. "openid" is always included.
func ScopeString ¶
ScopeString converts the scope set back to a space-separated string for the token claim.
Types ¶
This section is empty.