Skip to content
Snippets Groups Projects
Commit 3ebb8180 authored by ale's avatar ale
Browse files

Make cookie auth/enc keys strings

Or the yaml module will become confused.
parent 1acce89a
No related branches found
No related tags found
No related merge requests found
......@@ -117,9 +117,9 @@ func loadCA(path string) (*x509.CertPool, error) {
// Configuration for the proxy.
type Configuration struct {
SessionAuthKey []byte `yaml:"session_auth_key"`
SessionEncKey []byte `yaml:"session_enc_key"`
CA string `yaml:"ca"`
SessionAuthKey string `yaml:"session_auth_key"`
SessionEncKey string `yaml:"session_enc_key"`
//CA string `yaml:"ca"`
SSOLoginServerURL string `yaml:"sso_server_url"`
SSOPublicKeyFile string `yaml:"sso_public_key_file"`
......@@ -165,7 +165,7 @@ func NewProxy(config *Configuration) (http.Handler, error) {
return nil, err
}
w, err := httpsso.NewSSOWrapper(config.SSOLoginServerURL, pkey, config.SSODomain, config.SessionAuthKey, config.SessionEncKey)
w, err := httpsso.NewSSOWrapper(config.SSOLoginServerURL, pkey, config.SSODomain, []byte(config.SessionAuthKey), []byte(config.SessionEncKey))
if err != nil {
return nil, err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment