Documentation
¶
Overview ¶
Package cookie provides a cookie-based register.PendingStore. The pending registration travels in a signed and encrypted cookie (gorilla/securecookie), so no server-side state is required — suitable for multi-instance deployments that share the same keys.
The cookie carries the bcrypt password hash of the registration in progress; the encryption keeps it opaque to the client, and the signature prevents tampering with the satisfied-checks claim.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a cookie-based pending registration store. Data is signed and encrypted via gorilla/securecookie, meeting the register.Registration requirement of an authenticated client token.
func New ¶
New creates a cookie-based pending registration store. hashKey must be 32 or 64 bytes; blockKey must be 16, 24, or 32 bytes.
func (*Store) Set ¶
func (s *Store) Set(_ *http.Request, w http.ResponseWriter, reg register.Registration) error