Feature/audit certificate upload (#30223)
* feat: Add certificate upload option for audit logging settings * Commit current changes * Additions * MM-62944 Fix fileupload settings not being clickable * Support for uploading a cert for experimental audit logging cert. Pre cloud implementation in the backend * Forgot to add new hook * Add support for setting custom audit log certifcates in Cloud * Permissions * I18n * Change order * Linter fixes * Linter fixes, add openapi spec * additions for openapi * More openapi fixes because it won't run locally * Undo, cursor went rogue * newline fix * Align types properly * Fix i18n * Fix i18n AGAIN * Fix error * Update api/v4/source/audit_logging.yaml --------- Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -3385,6 +3385,26 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
uploadAuditLogCertificate = (fileData: File) => {
|
||||
const formData = new FormData();
|
||||
formData.append('certificate', fileData);
|
||||
|
||||
return this.doFetch<StatusOK>(
|
||||
`${this.getBaseRoute()}/audit_logs/certificate`,
|
||||
{
|
||||
method: 'post',
|
||||
body: formData,
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
removeAuditLogCertificate = () => {
|
||||
return this.doFetch<StatusOK>(
|
||||
`${this.getBaseRoute()}/audit_logs/certificate`,
|
||||
{method: 'delete'},
|
||||
);
|
||||
};
|
||||
|
||||
deletePublicSamlCertificate = () => {
|
||||
return this.doFetch<StatusOK>(
|
||||
`${this.getBaseRoute()}/saml/certificate/public`,
|
||||
|
||||
Ссылка в новой задаче
Block a user