diff --git a/pkg/cas/cas.go b/pkg/cas/cas.go index 877ed76669d8ffb0d45311dce8fc71e892de6fc0..96f70aaa3360f227553b69f29585b85b222ad161 100644 --- a/pkg/cas/cas.go +++ b/pkg/cas/cas.go @@ -67,6 +67,14 @@ func New(cf Config) *SsoClient { cli.DefaultRoles = cf.DefaultRoles cli.CoverAttributes = cf.CoverAttributes + if cf.SkipTlsVerify { + transport := &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + } + + cli.HTTPClient = &http.Client{Transport: transport} + } + return &cli }