Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClaimsPrincipal ¶
AddClaimsPrincipal adds service to the DI container
Types ¶
type IClaimsPrincipal ¶
type IClaimsPrincipal interface { GetClaims() []Claim HasClaim(claim Claim) bool AddClaim(claim Claim) RemoveClaim(claim Claim) }
IClaimsPrincipal interface
func GetClaimsPrincipalFromContainer ¶
func GetClaimsPrincipalFromContainer(ctn di.Container) IClaimsPrincipal
GetClaimsPrincipalFromContainer from the Container
Click to show internal directories.
Click to hide internal directories.