1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-10 04:17:59 +02:00
authboss/session_storer.go
Aaron a2ffe4f7c4 Add many new files and types.
- Add context.
- Add handler type.
- Add new storers for client storage and sessions.
- Add start of remember module.
2015-01-10 22:54:31 -08:00

10 lines
396 B
Go

package authboss
// SessionStorer must be implemented to satisfy certain modules (auth, remember primarily).
// It should be a secure storage of the session. This means if it represents a cookie storage
// these cookies should be signed in order to prevent tampering, or they should be encrypted.
type SessionStorer interface {
Put(key string, value interface{})
Get(key string) interface{}
}