Documentation
¶
Index ¶
Constants ¶
View Source
const ( SourceAnonymous = "anonymous" SourceLocalBasic = "local-basic" SourceLocalCSV = "local-csv" SourceGen3Fence = "gen3-fence" SourceGen3Mock = "gen3-mock" SourcePlugin = "plugin" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct {
Mode string
Source string
Subject string
Claims map[string]interface{}
Resources []string
Privileges map[string]map[string]bool
AuthHeaderPresent bool
AuthzEnforced bool
}
Session is the canonical auth state propagated through request handling.
func FromContext ¶
func NewSession ¶
func (*Session) SetAuthorizations ¶
func (*Session) SetSubject ¶
Click to show internal directories.
Click to hide internal directories.