Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompiler ¶
func NewCompiler() *compiler
Types ¶
type ExternalClaimsMapper ¶
type ExternalClaimsMapper interface {
// EvalExternalClaims evaluates the given external claims and returns a list of EvaluationResult.
// This is used for external claim source validation that contains multiple external claims.
EvalExternalClaims(context.Context, traits.Mapper) ([]authenticationcel.EvaluationResult, error)
}
func NewExternalClaimsMapper ¶
func NewExternalClaimsMapper(compilationResults ...authenticationcel.CompilationResult) ExternalClaimsMapper
type ExternalSourceCELMapper ¶
type ExternalSourceCELMapper struct {
URL authenticationcel.ClaimsMapper
Conditions authenticationcel.ClaimsMapper
Sources ExternalClaimsMapper
}
ExternalSourceCELMapper is a struct that holds the compiled expressions used when externally sourcing claims.
type ExternalSourceConditionExpression ¶
type ExternalSourceConditionExpression struct {
Expression string
}
func (*ExternalSourceConditionExpression) GetExpression ¶
func (v *ExternalSourceConditionExpression) GetExpression() string
GetExpression returns the CEL expression.
func (*ExternalSourceConditionExpression) ReturnTypes ¶
func (v *ExternalSourceConditionExpression) ReturnTypes() []*celgo.Type
ReturnTypes returns the CEL expression return types.
type ExternalSourceMappingExpression ¶
func (*ExternalSourceMappingExpression) GetExpression ¶
func (v *ExternalSourceMappingExpression) GetExpression() string
GetExpression returns the CEL expression.
func (*ExternalSourceMappingExpression) ReturnTypes ¶
func (v *ExternalSourceMappingExpression) ReturnTypes() []*celgo.Type
ReturnTypes returns the CEL expression return types.
type ExternalSourceURLExpression ¶
func (*ExternalSourceURLExpression) GetExpression ¶
func (v *ExternalSourceURLExpression) GetExpression() string
GetExpression returns the CEL expression.
func (*ExternalSourceURLExpression) ReturnTypes ¶
func (v *ExternalSourceURLExpression) ReturnTypes() []*celgo.Type
ReturnTypes returns the CEL expression return types.
Click to show internal directories.
Click to hide internal directories.