fix(config): propagate GroupToTag's comparer into the effective-config projection
This commit is contained in:
@@ -64,12 +64,13 @@ public sealed class GatewayConfigurationProvider(IOptions<GatewayOptions> option
|
||||
ShowTagValues: value.Dashboard.ShowTagValues,
|
||||
GroupToRole: value.Dashboard.GroupToRole,
|
||||
// Rebuilt rather than passed through because the value type widens from string[]
|
||||
// to IReadOnlyList<string>; the comparer is carried over so the projected map
|
||||
// still matches LDAP group names in whatever case the directory returns them.
|
||||
// to IReadOnlyList<string>; the source dictionary's own comparer is carried over
|
||||
// (case-insensitive by default) so the projected map still matches LDAP group
|
||||
// names in whatever case the directory returns them.
|
||||
GroupToTag: value.Dashboard.GroupToTag.ToDictionary(
|
||||
pair => pair.Key,
|
||||
pair => (IReadOnlyList<string>)pair.Value,
|
||||
StringComparer.OrdinalIgnoreCase),
|
||||
value.Dashboard.GroupToTag.Comparer),
|
||||
UntaggedSessionVisibility: value.Dashboard.UntaggedSessionVisibility),
|
||||
Protocol: new EffectiveProtocolConfiguration(
|
||||
value.Protocol.WorkerProtocolVersion,
|
||||
|
||||
Reference in New Issue
Block a user