Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateSecureKey(n int) ([]byte, error)
- type Store
- func (store *Store) GetWebauthnSession(key string, r *http.Request) (webauthn.SessionData, error)
- func (store *Store) SaveWebauthnSession(key string, data *webauthn.SessionData, r *http.Request, w http.ResponseWriter) error
- func (store *Store) Set(key string, value interface{}, r *http.Request, w http.ResponseWriter) error
Constants ¶
View Source
const ( DefaultEncryptionKeyLength = 32 WebauthnSession = "webauthn-session" )
Variables ¶
View Source
var ( ErrInsufficientBytesRead = errors.New("insufficient bytes read") ErrMarshal = errors.New("error unmarshaling data") )
Functions ¶
func GenerateSecureKey ¶
Types ¶
type Store ¶
type Store struct {
*sessions.CookieStore
}
Store is a wrapper around sessions.CookieStore which provides some helper methods related to webauthn operations and encrypted cookies.
func (*Store) GetWebauthnSession ¶
func (*Store) SaveWebauthnSession ¶
func (store *Store) SaveWebauthnSession(key string, data *webauthn.SessionData, r *http.Request, w http.ResponseWriter) error
Click to show internal directories.
Click to hide internal directories.