Versions in this module Expand all Collapse all v8 v8.3.2 May 27, 2020 Changes in this version + const HTTPHeaderAuthRequest + const HTTPHeaderAuthResponse + const HTTPHeaderAuthResponseValueKey + const TOK_ID_KRB_AP_REP + const TOK_ID_KRB_AP_REQ + const TOK_ID_KRB_ERROR + const UnauthorizedMsg + func SPNEGOKRB5Authenticate(inner http.Handler, kt keytab.Keytab, settings ...func(*service.Settings)) http.Handler + func SetSPNEGOHeader(cl *client.Client, r *http.Request, spn string) error + func UnmarshalNegToken(b []byte) (bool, interface{}, error) + type Client struct + func NewClient(krb5Cl *client.Client, httpCl *http.Client, spn string) *Client + func (c *Client) Do(req *http.Request) (resp *http.Response, err error) + func (c *Client) Get(url string) (resp *http.Response, err error) + func (c *Client) Head(url string) (resp *http.Response, err error) + func (c *Client) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) + func (c *Client) PostForm(url string, data url.Values) (resp *http.Response, err error) + type KRB5Token struct + APRep messages.APRep + APReq messages.APReq + KRBError messages.KRBError + OID asn1.ObjectIdentifier + func NewKRB5TokenAPREQ(cl *client.Client, tkt messages.Ticket, sessionKey types.EncryptionKey, ...) (KRB5Token, error) + func (m *KRB5Token) Context() context.Context + func (m *KRB5Token) IsAPRep() bool + func (m *KRB5Token) IsAPReq() bool + func (m *KRB5Token) IsKRBError() bool + func (m *KRB5Token) Marshal() ([]byte, error) + func (m *KRB5Token) Unmarshal(b []byte) error + func (m *KRB5Token) Verify() (bool, gssapi.Status) + type NegState int + const NegStateAcceptCompleted + const NegStateAcceptIncomplete + const NegStateReject + const NegStateRequestMIC + type NegTokenInit struct + MechListMIC []byte + MechTokenBytes []byte + MechTypes []asn1.ObjectIdentifier + ReqFlags gssapi.ContextFlags + func NewNegTokenInitKRB5(cl *client.Client, tkt messages.Ticket, sessionKey types.EncryptionKey) (NegTokenInit, error) + func (n *NegTokenInit) Context() context.Context + func (n *NegTokenInit) Marshal() ([]byte, error) + func (n *NegTokenInit) Unmarshal(b []byte) error + func (n *NegTokenInit) Verify() (bool, gssapi.Status) + type NegTokenResp struct + MechListMIC []byte + NegState asn1.Enumerated + ResponseToken []byte + SupportedMech asn1.ObjectIdentifier + func (n *NegTokenResp) Context() context.Context + func (n *NegTokenResp) Marshal() ([]byte, error) + func (n *NegTokenResp) State() NegState + func (n *NegTokenResp) Unmarshal(b []byte) error + func (n *NegTokenResp) Verify() (bool, gssapi.Status) + type NegTokenTarg NegTokenResp + type SPNEGO struct + func SPNEGOClient(cl *client.Client, spn string) *SPNEGO + func SPNEGOService(kt keytab.Keytab, options ...func(*service.Settings)) *SPNEGO + func (s *SPNEGO) AcceptSecContext(ct gssapi.ContextToken) (bool, context.Context, gssapi.Status) + func (s *SPNEGO) AcquireCred() error + func (s *SPNEGO) InitSecContext() (gssapi.ContextToken, error) + func (s *SPNEGO) Log(format string, v ...interface{}) + func (s *SPNEGO) OID() asn1.ObjectIdentifier + type SPNEGOToken struct + Init bool + NegTokenInit NegTokenInit + NegTokenResp NegTokenResp + Resp bool + func (s *SPNEGOToken) Context() context.Context + func (s *SPNEGOToken) Marshal() ([]byte, error) + func (s *SPNEGOToken) Unmarshal(b []byte) error + func (s *SPNEGOToken) Verify() (bool, gssapi.Status) Other modules containing this package github.com/atlassian-forks/gokrb5