diff --git a/proxy/proxy.go b/proxy/proxy.go index f7aa72f06f4529ffc8ec3c178d02546dfb7363d3..09bd2e34947468ac431630770a2c27b2038f96fc 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -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 }