files.com 1.2.25 → 1.2.26
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/_VERSION +1 -1
- package/docs/models/SsoStrategy.md +2 -0
- package/lib/Files.js +1 -1
- package/lib/models/SsoStrategy.js +4 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/SsoStrategy.js +3 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.26
|
@@ -39,6 +39,7 @@
|
|
39
39
|
"provision_sftp_permission": true,
|
40
40
|
"provision_time_zone": "Eastern Time (US & Canada)",
|
41
41
|
"provision_company": "ACME Corp.",
|
42
|
+
"provision_require_2fa": "always_require",
|
42
43
|
"ldap_base_dn": "example",
|
43
44
|
"ldap_domain": "mysite.com",
|
44
45
|
"enabled": true,
|
@@ -87,6 +88,7 @@
|
|
87
88
|
* `provision_sftp_permission` (boolean): Auto-provisioned users get SFTP permission?
|
88
89
|
* `provision_time_zone` (string): Default time zone for auto provisioned users.
|
89
90
|
* `provision_company` (string): Default company for auto provisioned users.
|
91
|
+
* `provision_require_2fa` (string): 2FA required setting for auto provisioned users.
|
90
92
|
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
|
91
93
|
* `ldap_domain` (string): Domain name that will be appended to LDAP usernames
|
92
94
|
* `enabled` (boolean): Is strategy enabled? This may become automatically set to `false` after a high number and duration of failures.
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.2.
|
14
|
+
var version = '1.2.26';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -173,6 +173,10 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
|
|
173
173
|
(0, _defineProperty2.default)(this, "getProvisionCompany", function () {
|
174
174
|
return _this.attributes.provision_company;
|
175
175
|
});
|
176
|
+
// string # 2FA required setting for auto provisioned users.
|
177
|
+
(0, _defineProperty2.default)(this, "getProvisionRequire2fa", function () {
|
178
|
+
return _this.attributes.provision_require_2fa;
|
179
|
+
});
|
176
180
|
// string # Base DN for looking up users in LDAP server
|
177
181
|
(0, _defineProperty2.default)(this, "getLdapBaseDn", function () {
|
178
182
|
return _this.attributes.ldap_base_dn;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
@@ -133,6 +133,9 @@ class SsoStrategy {
|
|
133
133
|
// string # Default company for auto provisioned users.
|
134
134
|
getProvisionCompany = () => this.attributes.provision_company
|
135
135
|
|
136
|
+
// string # 2FA required setting for auto provisioned users.
|
137
|
+
getProvisionRequire2fa = () => this.attributes.provision_require_2fa
|
138
|
+
|
136
139
|
// string # Base DN for looking up users in LDAP server
|
137
140
|
getLdapBaseDn = () => this.attributes.ldap_base_dn
|
138
141
|
|