117 class GroupAttributes
123 UsernameEditable(
true),
124 SecondaryUsernameEditable(
true),
125 UsesSecondaryAuth(
false)
131 explicit GroupAttributes(
132 const GroupAttributes& existingGroupAttr)
134 deepCopy(existingGroupAttr);
139 GroupAttributes& operator=(
140 const GroupAttributes& existingGroupAttr)
142 return deepCopy(existingGroupAttr);
147 bool UsernameEditable;
149 bool SecondaryUsernameEditable;
151 bool UsesSecondaryAuth;
154 GroupAttributes& deepCopy(
const GroupAttributes& existingGroupAttr)
156 if (std::addressof(existingGroupAttr) !=
this)
158 CredRequired = existingGroupAttr.CredRequired;
159 UsesSDIAuth = existingGroupAttr.UsesSDIAuth;
160 UsernameEditable = existingGroupAttr.UsernameEditable;
161 Username = existingGroupAttr.Username.c_str();
162 SecondaryUsernameEditable = existingGroupAttr.SecondaryUsernameEditable;
163 SecondaryUsername = existingGroupAttr.SecondaryUsername.c_str();
164 UsesSecondaryAuth = existingGroupAttr.UsesSecondaryAuth;
170 class SingleAttributes
174 SecondaryAuthEntry(
false),
175 SSOTimeoutSeconds(0),
176 SSOIsExternalBrowser(
false)
182 explicit SingleAttributes(
183 const SingleAttributes& existingSingleAttr)
185 deepCopy(existingSingleAttr);
190 SingleAttributes& operator=(
191 const SingleAttributes& existingSingleAttr)
193 return deepCopy(existingSingleAttr);
196 bool SecondaryAuthEntry;
201 unsigned int SSOTimeoutSeconds;
203 bool SSOIsExternalBrowser;
204 std::unordered_set<tstring> SSOClientCertReqIgnoredFqdns;
207 SingleAttributes& deepCopy(
const SingleAttributes& existingSingleAttr)
209 if (std::addressof(existingSingleAttr) !=
this)
211 SecondaryAuthEntry = existingSingleAttr.SecondaryAuthEntry;
212 SSOURL = existingSingleAttr.SSOURL.c_str();
213 SSOFinalURL = existingSingleAttr.SSOFinalURL.c_str();
214 SSOTokenCookieName = existingSingleAttr.SSOTokenCookieName.c_str();
215 SSOErrorCookieName = existingSingleAttr.SSOErrorCookieName.c_str();
216 SSOTimeoutSeconds = existingSingleAttr.SSOTimeoutSeconds;
217 SSOUserAgent = existingSingleAttr.SSOUserAgent.c_str();
218 SSOIsExternalBrowser = existingSingleAttr.SSOIsExternalBrowser;
219 for (
const auto& fqdn : existingSingleAttr.SSOClientCertReqIgnoredFqdns)
221 SSOClientCertReqIgnoredFqdns.insert(fqdn.c_str());