mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
7efcac6017
This adjusts the session ID generator making it use it's own random function rather than using one from the utils lib. This allows us to utilize crypto/rand or math/rand interchangeably. Additionally refactor the utils.RandomString func.
14 lines
284 B
Go
14 lines
284 B
Go
package session
|
|
|
|
const (
|
|
testDomain = "example.com"
|
|
testExpiration = "40"
|
|
testName = "my_session"
|
|
testUsername = "john"
|
|
)
|
|
|
|
const (
|
|
userSessionStorerKey = "UserSession"
|
|
randomSessionChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!#$%^*"
|
|
)
|