Merge pull request #11965 from ioito/automated-cherry-pick-of-#11964-upstream-release-3.7

Automated cherry pick of #11964: fix(cloudid): hcso enable multi tenant saml provider
This commit is contained in:
Zexi Li
2021-08-20 17:05:45 +08:00
committed by GitHub
@@ -210,6 +210,7 @@ func (self *SHuaweiClient) CreateSAMLProvider(opts *cloudprovider.SAMLProviderCr
"enabled": true,
},
})
opts.Name = fmt.Sprintf("%s-%s", self.ownerName, opts.Name)
name := []byte{}
for _, c := range opts.Name {
if unicode.IsLetter(c) || unicode.IsNumber(c) || c == '-' || c == '_' {