mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-10 04:17:59 +02:00
a2ffe4f7c4
- Add context. - Add handler type. - Add new storers for client storage and sessions. - Add start of remember module.
10 lines
396 B
Go
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{}
|
|
}
|