claimsprincipal

package
v0.1.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClaimsPrincipal

func AddClaimsPrincipal(builder *di.Builder)

ClaimsPrincipal adds service to the DI container

Types

type Claim

type Claim struct {
	Type  string
	Value string
}

type IClaimsPrincipal

type IClaimsPrincipal interface {
	GetClaims() []Claim
	HasClaim(claim Claim) bool
	AddClaim(claim Claim)
	RemoveClaim(claim Claim)
}

func GetClaimsPrincipalFromContainer

func GetClaimsPrincipalFromContainer(ctn di.Container) IClaimsPrincipal

GetClaimsPrincipalFromContainer from the Container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL