Versions in this module Expand all Collapse all v6 v6.0.1 Jan 19, 2020 Changes in this version + const CTXKey + func AddToHTTPRequestContext(id Identity, r *http.Request) *http.Request + type Authenticator interface + Authenticate func() (Identity, bool, error) + Mechanism func() string + type Identity interface + AddAuthzAttribute func(a string) + Attributes func() map[string]interface{} + AuthTime func() time.Time + Authenticated func() bool + Authorized func(a string) bool + AuthzAttributes func() []string + DisplayName func() string + Domain func() string + Expired func() bool + Human func() bool + Marshal func() ([]byte, error) + RemoveAttribute func(k string) + RemoveAuthzAttribute func(a string) + SessionID func() string + SetAttribute func(k string, v interface{}) + SetAttributes func(map[string]interface{}) + SetAuthTime func(t time.Time) + SetAuthenticated func(b bool) + SetDisplayName func(s string) + SetDomain func(s string) + SetHuman func(b bool) + SetUserName func(s string) + Unmarshal func([]byte) error + UserName func() string + func FromHTTPRequestContext(r *http.Request) Identity + type User struct + func NewUser(username string) User + func (u *User) AddAuthzAttribute(a string) + func (u *User) Attributes() map[string]interface{} + func (u *User) AuthTime() time.Time + func (u *User) Authenticated() bool + func (u *User) Authorized(a string) bool + func (u *User) AuthzAttributes() []string + func (u *User) DisableAuthzAttribute(a string) + func (u *User) DisplayName() string + func (u *User) Domain() string + func (u *User) EnableAuthzAttribute(a string) + func (u *User) Expired() bool + func (u *User) Human() bool + func (u *User) Marshal() ([]byte, error) + func (u *User) RemoveAttribute(k string) + func (u *User) RemoveAuthzAttribute(a string) + func (u *User) SessionID() string + func (u *User) SetAttribute(k string, v interface{}) + func (u *User) SetAttributes(a map[string]interface{}) + func (u *User) SetAuthTime(t time.Time) + func (u *User) SetAuthenticated(b bool) + func (u *User) SetDisplayName(s string) + func (u *User) SetDomain(s string) + func (u *User) SetExpiry(t time.Time) + func (u *User) SetHuman(b bool) + func (u *User) SetUserName(s string) + func (u *User) Unmarshal(b []byte) error + func (u *User) UserName() string Other modules containing this package github.com/jcmturner/goidentity