Versions in this module Expand all Collapse all v8 v8.4.2 Jul 20, 2021 Changes in this version + func ClientAddress(h types.HostAddress) func(*Settings) + func DecodePAC(b bool) func(*Settings) + func KeytabPrincipal(p string) func(*Settings) + func Logger(l *log.Logger) func(*Settings) + func MaxClockSkew(d time.Duration) func(*Settings) + func RequireHostAddr(b bool) func(*Settings) + func SName(sname string) func(*Settings) + func SessionManager(sm SessionMgr) func(*Settings) + func VerifyAPREQ(APReq *messages.APReq, s *Settings) (bool, *credentials.Credentials, error) + type Cache struct + func GetReplayCache(d time.Duration) *Cache + func (c *Cache) AddEntry(sname types.PrincipalName, a types.Authenticator) + func (c *Cache) ClearOldEntries(d time.Duration) + func (c *Cache) IsReplay(sname types.PrincipalName, a types.Authenticator) bool + type KRB5BasicAuthenticator struct + BasicHeaderValue string + func NewKRB5BasicAuthenticator(headerVal string, krb5conf *config.Config, serviceSettings *Settings, ...) KRB5BasicAuthenticator + func (a KRB5BasicAuthenticator) Authenticate() (i goidentity.Identity, ok bool, err error) + func (a KRB5BasicAuthenticator) Mechanism() string + type SessionMgr interface + Get func(r *http.Request, k string) ([]byte, error) + New func(w http.ResponseWriter, r *http.Request, k string, v []byte) error + type Settings struct + Keytab *keytab.Keytab + func NewSettings(kt *keytab.Keytab, settings ...func(*Settings)) *Settings + func (s *Settings) ClientAddress() types.HostAddress + func (s *Settings) DecodePAC() bool + func (s *Settings) KeytabPrincipal() *types.PrincipalName + func (s *Settings) Logger() *log.Logger + func (s *Settings) MaxClockSkew() time.Duration + func (s *Settings) RequireHostAddr() bool + func (s *Settings) SName() string + func (s *Settings) SessionManager() SessionMgr Other modules containing this package github.com/wangzhengzh/gokrb5