@stackfactor/client-api 1.1.100 → 1.1.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/security.js +6 -6
- package/package.json +1 -1
package/lib/security.js
CHANGED
|
@@ -5,10 +5,10 @@ import { client } from "./axiosClient.js";
|
|
|
5
5
|
* @param {String} authToken - Authorization token
|
|
6
6
|
* @returns {Promise<Object>}
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
8
|
+
const getAuthConnections = (authToken) => {
|
|
9
9
|
return new Promise(function (resolve, reject) {
|
|
10
10
|
const getConfigInformationRequest = client.get(
|
|
11
|
-
`api/v1/security/
|
|
11
|
+
`api/v1/security/getauthconnections`,
|
|
12
12
|
{ headers: { authorization: authToken } }
|
|
13
13
|
);
|
|
14
14
|
getConfigInformationRequest
|
|
@@ -26,10 +26,10 @@ const getAuthConnection = (authToken) => {
|
|
|
26
26
|
* @param {Object} data - the object containing the updated configuration
|
|
27
27
|
* @param {String} authToken - Authorization token
|
|
28
28
|
*/
|
|
29
|
-
const
|
|
29
|
+
const setAuthConnections = (data, authToken) => {
|
|
30
30
|
return new Promise(function (resolve, reject) {
|
|
31
31
|
const setConfigInformationRequest = client.post(
|
|
32
|
-
`api/v1/security/
|
|
32
|
+
`api/v1/security/setauthconnections`,
|
|
33
33
|
{ data: data },
|
|
34
34
|
{ headers: { authorization: authToken } }
|
|
35
35
|
);
|
|
@@ -44,6 +44,6 @@ const setAuthConnection = (data, authToken) => {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export default {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
getAuthConnections,
|
|
48
|
+
setAuthConnections,
|
|
49
49
|
};
|