MM-51321 Refactor audit log application. (#22481)
* Refactor audit log application. * Fix incorrect API Usage for Auditing * Fixups. * Rename Object audit to Auditable. Some small fixes. --------- Co-authored-by: Daniel Schalla <daniel@schalla.me>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9a38a52392
Коммит
7804debb7f
@@ -13,6 +13,15 @@ type SwitchRequest struct {
|
||||
LdapLoginId string `json:"ldap_id"`
|
||||
}
|
||||
|
||||
func (o *SwitchRequest) Auditable() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"current_service": o.CurrentService,
|
||||
"new_service": o.NewService,
|
||||
"email": o.Email,
|
||||
"ldap_login_id": o.LdapLoginId,
|
||||
}
|
||||
}
|
||||
|
||||
func (o *SwitchRequest) EmailToOAuth() bool {
|
||||
return o.CurrentService == UserAuthServiceEmail &&
|
||||
(o.NewService == UserAuthServiceSaml ||
|
||||
|
||||
Ссылка в новой задаче
Block a user