Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTransform ¶
ApplyTransform applies a named transformation to a value.
func GetNestedValue ¶
GetNestedValue retrieves a value from a map using dot-notation path.
Types ¶
type ClaimTransformer ¶
type ClaimTransformer struct {
// contains filtered or unexported fields
}
ClaimTransformer transforms external attributes/claims into credential document structures. Protocol-agnostic — works for SAML OIDs, OIDC claim names, or any other attribute source.
func NewClaimTransformer ¶
func NewClaimTransformer(mappings map[string]model.CredentialMapping) *ClaimTransformer
NewClaimTransformer creates a new claim transformer from credential mappings.
func (*ClaimTransformer) GetMapping ¶
func (t *ClaimTransformer) GetMapping(credentialType string) (*model.CredentialMapping, error)
GetMapping returns the credential mapping for a credential type.
func (*ClaimTransformer) TransformClaims ¶
func (t *ClaimTransformer) TransformClaims( credentialType string, attributes map[string]any, ) (map[string]any, error)
TransformClaims converts external attributes (keyed by protocol-specific identifiers) to a generic document structure using the configured mappings.
Click to show internal directories.
Click to hide internal directories.