mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 09:09:36 -05:00
14 lines
491 B
Go
14 lines
491 B
Go
|
package secctx
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
// Store is an interface for storage of SSPI context handles.
|
||
|
// SSPI context handles are Windows API handles and have nothing to do
|
||
|
// with the "context" package in Go.
|
||
|
type Store interface {
|
||
|
// GetHandle retrieves a *websspi.CtxtHandle value from the store
|
||
|
GetHandle(r *http.Request) (interface{}, error)
|
||
|
// SetHandle saves a *websspi.CtxtHandle value to the store
|
||
|
SetHandle(r *http.Request, w http.ResponseWriter, contextHandle interface{}) error
|
||
|
}
|