package goidentity

Import Path
	github.com/jcmturner/goidentity/v6 (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 2 packages

Involved Source Files authenticator.go identity.go user.go
Package-Level Type Names (total 3)
/* sort by: | */
( Authenticator) Authenticate() (Identity, bool, error) // gives the name of the type of authentication mechanism github.com/jcmturner/gokrb5/v8/service.KRB5BasicAuthenticator
( Identity) AddAuthzAttribute(a string) ( Identity) Attributes() map[string]interface{} ( Identity) AuthTime() time.Time ( Identity) Authenticated() bool ( Identity) Authorized(a string) bool ( Identity) AuthzAttributes() []string ( Identity) DisplayName() string ( Identity) Domain() string ( Identity) Expired() bool ( Identity) Human() bool ( Identity) Marshal() ([]byte, error) ( Identity) RemoveAttribute(k string) ( Identity) RemoveAuthzAttribute(a string) ( Identity) SessionID() string ( Identity) SetAttribute(k string, v interface{}) ( Identity) SetAttributes(map[string]interface{}) ( Identity) SetAuthTime(t time.Time) ( Identity) SetAuthenticated(b bool) ( Identity) SetDisplayName(s string) ( Identity) SetDomain(s string) ( Identity) SetHuman(b bool) ( Identity) SetUserName(s string) ( Identity) Unmarshal([]byte) error ( Identity) UserName() string *User *github.com/jcmturner/gokrb5/v8/credentials.Credentials func FromHTTPRequestContext(r *http.Request) Identity func Authenticator.Authenticate() (Identity, bool, error) func github.com/jcmturner/gokrb5/v8/service.KRB5BasicAuthenticator.Authenticate() (i Identity, ok bool, err error) func AddToHTTPRequestContext(id Identity, r *http.Request) *http.Request
(*User) AddAuthzAttribute(a string) (*User) Attributes() map[string]interface{} (*User) AuthTime() time.Time (*User) Authenticated() bool (*User) Authorized(a string) bool (*User) AuthzAttributes() []string (*User) DisableAuthzAttribute(a string) (*User) DisplayName() string (*User) Domain() string (*User) EnableAuthzAttribute(a string) (*User) Expired() bool (*User) Human() bool (*User) Marshal() ([]byte, error) (*User) RemoveAttribute(k string) (*User) RemoveAuthzAttribute(a string) (*User) SessionID() string (*User) SetAttribute(k string, v interface{}) (*User) SetAttributes(a map[string]interface{}) (*User) SetAuthTime(t time.Time) (*User) SetAuthenticated(b bool) (*User) SetDisplayName(s string) (*User) SetDomain(s string) (*User) SetExpiry(t time.Time) (*User) SetHuman(b bool) (*User) SetUserName(s string) (*User) Unmarshal(b []byte) error (*User) UserName() string *User : Identity func NewUser(username string) User
Package-Level Functions (total 3)
func NewUser(username string) User
Package-Level Constants (only one)
const CTXKey = "jcmturner/goidentity"