PLT-3629 fix uploading certificates if the files in the config do not exists (#3634)
Этот коммит содержится в:
@@ -70,6 +70,26 @@ export default class SamlSettings extends AdminSettings {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
Client.samlCertificateStatus(
|
||||
(data) => {
|
||||
const files = {};
|
||||
if (!data.IdpCertificateFile) {
|
||||
files.idpCertificateFile = '';
|
||||
}
|
||||
|
||||
if (!data.PublicCertificateFile) {
|
||||
files.publicCertificateFile = '';
|
||||
}
|
||||
|
||||
if (!data.PrivateKeyFile) {
|
||||
files.privateKeyFile = '';
|
||||
}
|
||||
this.setState(files);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
uploadCertificate(id, file, callback) {
|
||||
Client.uploadCertificateFile(
|
||||
file,
|
||||
|
||||
Ссылка в новой задаче
Block a user