Skip to content
Snippets Groups Projects

Refactor the login handler

Merged ale requested to merge better-login into master
2 files
+ 8
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
0
@@ -19,6 +19,9 @@ import (
"git.autistici.org/id/go-sso/httpsso"
)
// TTL for SSO sessions on the proxy.
var proxyAuthTTL = 1 * time.Hour
// RNG for the random backend selector.
var rnd = rand.New(rand.NewSource(time.Now().UnixNano()))
@@ -131,6 +134,7 @@ func NewProxy(config *Config) (http.Handler, error) {
config.SSODomain,
[]byte(config.SessionAuthKey),
[]byte(config.SessionEncKey),
proxyAuthTTL,
)
if err != nil {
return nil, err
Loading