Documentation
¶
Overview ¶
Package mapper provides claim-based role mapping for PrincipalSource implementations. It allows applications to configure rules that grant internal roles to service identities based on JWT claim values, without requiring the IdP to support custom role claims.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimRoleMapping ¶
type ClaimRoleMapping struct {
// Claims maps claim key → required value.
// Keys may be canonical attribute names (e.g. "primary_email", "username")
// or raw JWT claim names specific to the IdP (e.g. "repository", "app_name").
// A value of "*" matches any non-empty string.
Claims map[string]string
// Role is the role string granted when all claim predicates match.
Role string
}
ClaimRoleMapping maps a set of claim predicates to an internal role. All claim predicates must match (AND semantics).
Click to show internal directories.
Click to hide internal directories.