mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
Allow site replication config with multiple IDPs (#15361)
Fixes a bug that did not let site replication be configured when multiple IDPs are configured.
This commit is contained in:
parent
7d8c8de827
commit
2393a13f86
@ -515,7 +515,7 @@ func (r *Config) GetSettings() madmin.OpenIDSettings {
|
|||||||
hashedSecret = base64.RawURLEncoding.EncodeToString(bs)
|
hashedSecret = base64.RawURLEncoding.EncodeToString(bs)
|
||||||
}
|
}
|
||||||
if arn != DummyRoleARN {
|
if arn != DummyRoleARN {
|
||||||
if res.Roles != nil {
|
if res.Roles == nil {
|
||||||
res.Roles = make(map[string]madmin.OpenIDProviderSettings)
|
res.Roles = make(map[string]madmin.OpenIDProviderSettings)
|
||||||
}
|
}
|
||||||
res.Roles[arn.String()] = madmin.OpenIDProviderSettings{
|
res.Roles[arn.String()] = madmin.OpenIDProviderSettings{
|
||||||
|
Loading…
Reference in New Issue
Block a user