mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
6276883f04
This enhances the existing time.Duration parser to allow multiple units, and implements a decode hook which can be used by koanf to decode string/integers into time.Durations as applicable.
18 lines
316 B
Go
18 lines
316 B
Go
package session
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
testDomain = "example.com"
|
|
testExpiration = time.Second * 40
|
|
testName = "my_session"
|
|
testUsername = "john"
|
|
)
|
|
|
|
const (
|
|
userSessionStorerKey = "UserSession"
|
|
randomSessionChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!#$%^*"
|
|
)
|