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 CHANGED
@@ -1 +1 @@
1
- 1.2.25
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.25';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.25'
8
+ const version = '1.2.26'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -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