Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ClaimTypeAndValueExpression ... ClaimTypeAndValueExpression = "has_claim(%s|%s)" // ClaimTypeExpression ... ClaimTypeExpression = "has_claim_type(%s)" )
Variables ¶
This section is empty.
Functions ¶
func NewClaimFact ¶
func NewClaimFact(claim contracts_claimsprincipal.Claim) contracts_claimsprincipal.IClaimFact
NewClaimFact ...
func NewClaimFactType ¶
func NewClaimFactType(claimType string) contracts_claimsprincipal.IClaimFact
Types ¶
type ClaimFact ¶
type ClaimFact struct { Claim contracts_claimsprincipal.Claim Directive Directive }
ClaimFact used for authorization
func (*ClaimFact) HasClaim ¶
func (s *ClaimFact) HasClaim(claimsPrincipal contracts_claimsprincipal.IClaimsPrincipal) bool
HasClaim ...
Click to show internal directories.
Click to hide internal directories.