summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-07-20 17:01:10 -0400
committerCorey Hulen <corey@hulen.com>2016-07-20 13:01:10 -0800
commit86d496c9b72c97b905bfc23d26556032c6fa1d05 (patch)
tree5750d849c44f62d3269169e80fbb69e86e92867d /webapp/client/client.jsx
parentb0090214ef4e550b1e82c6f8cb5f717bfefe358b (diff)
downloadchat-86d496c9b72c97b905bfc23d26556032c6fa1d05.tar.gz
chat-86d496c9b72c97b905bfc23d26556032c6fa1d05.tar.bz2
chat-86d496c9b72c97b905bfc23d26556032c6fa1d05.zip
PLT-3629 fix uploading certificates if the files in the config do not exists (#3634)
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 5ee28be78..88da51372 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1667,4 +1667,17 @@ export default class Client {
send({filename}).
end(this.handleResponse.bind(this, 'removeCertificateFile', success, error));
}
+
+ samlCertificateStatus(success, error) {
+ request.get(`${this.getAdminRoute()}/saml_cert_status`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ end((err, res) => {
+ if (err) {
+ return error(err);
+ }
+ return success(res.body);
+ });
+ }
}