files.com 1.0.203 → 1.0.207
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/build.sh +1 -3
- data/docs/site.md +9 -0
- data/docs/user.md +6 -4
- data/lib/files.com/models/site.rb +12 -0
- data/lib/files.com/models/user.rb +13 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fb5bf67fe8213a1de5aa3b43f60fb3875b1fc333ecc25c5f1acce2c43bbcf49
|
4
|
+
data.tar.gz: 8672f2d39b9755942ad5be5f5644b07501ee70eae7227feb54130cfbf8f64df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e00145f208ffb4f09ccc526d1afc1b00b76655322b59ed9d10b618e9f6037861550f79ccd2e220bfc3ede08fd34832c2ba34ffb367bd00280be4d5d88d219a23
|
7
|
+
data.tar.gz: ebdbe0cd84102d13ea513a1a2cd7039bb6cd6a9092d73f11a2b8599f3a087990e7323df61b6fb83ccefb8f4b16abea0a62ed030828c8365f330b1090dad1d4a9
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.207
|
data/build.sh
CHANGED
data/docs/site.md
CHANGED
@@ -39,6 +39,7 @@
|
|
39
39
|
"disable_password_reset": true,
|
40
40
|
"domain": "my-custom-domain.com",
|
41
41
|
"email": "john.doe@files.com",
|
42
|
+
"ftp_enabled": true,
|
42
43
|
"reply_to_email": "jane.doe@files.com",
|
43
44
|
"non_sso_groups_allowed": true,
|
44
45
|
"non_sso_users_allowed": true,
|
@@ -126,6 +127,7 @@
|
|
126
127
|
"windows_mode_ftp": false
|
127
128
|
},
|
128
129
|
"session_pinned_by_ip": true,
|
130
|
+
"sftp_enabled": true,
|
129
131
|
"sftp_user_root_enabled": true,
|
130
132
|
"sharing_enabled": true,
|
131
133
|
"show_request_access_link": true,
|
@@ -183,6 +185,7 @@
|
|
183
185
|
"require_2fa": "always_require",
|
184
186
|
"active_2fa": true,
|
185
187
|
"require_password_change": true,
|
188
|
+
"password_expired": true,
|
186
189
|
"restapi_permission": true,
|
187
190
|
"self_managed": true,
|
188
191
|
"sftp_permission": true,
|
@@ -245,6 +248,7 @@
|
|
245
248
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
246
249
|
* `domain` (string): Custom domain
|
247
250
|
* `email` (email): Main email for this site
|
251
|
+
* `ftp_enabled` (boolean): Is FTP enabled?
|
248
252
|
* `reply_to_email` (email): Reply-to email for this site
|
249
253
|
* `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
|
250
254
|
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
@@ -298,6 +302,7 @@
|
|
298
302
|
* `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
299
303
|
* `session`: Current session
|
300
304
|
* `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
305
|
+
* `sftp_enabled` (boolean): Is SFTP enabled?
|
301
306
|
* `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
|
302
307
|
* `sharing_enabled` (boolean): Allow bundle creation
|
303
308
|
* `show_request_access_link` (boolean): Show request access link for users without access? Currently unused.
|
@@ -413,6 +418,8 @@ Files::Site.update(
|
|
413
418
|
non_sso_users_allowed: true,
|
414
419
|
sharing_enabled: true,
|
415
420
|
user_requests_enabled: true,
|
421
|
+
ftp_enabled: true,
|
422
|
+
sftp_enabled: true,
|
416
423
|
allowed_2fa_method_sms: true,
|
417
424
|
allowed_2fa_method_u2f: true,
|
418
425
|
allowed_2fa_method_totp: true,
|
@@ -513,6 +520,8 @@ Files::Site.update(
|
|
513
520
|
* `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
514
521
|
* `sharing_enabled` (boolean): Allow bundle creation
|
515
522
|
* `user_requests_enabled` (boolean): Enable User Requests feature
|
523
|
+
* `ftp_enabled` (boolean): Is FTP enabled?
|
524
|
+
* `sftp_enabled` (boolean): Is SFTP enabled?
|
516
525
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
517
526
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
518
527
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
data/docs/user.md
CHANGED
@@ -41,6 +41,7 @@
|
|
41
41
|
"require_2fa": "always_require",
|
42
42
|
"active_2fa": true,
|
43
43
|
"require_password_change": true,
|
44
|
+
"password_expired": true,
|
44
45
|
"restapi_permission": true,
|
45
46
|
"self_managed": true,
|
46
47
|
"sftp_permission": true,
|
@@ -91,6 +92,7 @@
|
|
91
92
|
* `require_2fa` (string): 2FA required setting
|
92
93
|
* `active_2fa` (boolean): Is 2fa active for the user?
|
93
94
|
* `require_password_change` (boolean): Is a password change required upon next user login?
|
95
|
+
* `password_expired` (boolean): Is user's password expired?
|
94
96
|
* `restapi_permission` (boolean): Can this user access the REST API?
|
95
97
|
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
|
96
98
|
* `sftp_permission` (boolean): Can the user access with SFTP?
|
@@ -109,7 +111,7 @@
|
|
109
111
|
* `change_password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `change_password`.
|
110
112
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
111
113
|
* `group_id` (int64): Group ID to associate this user with.
|
112
|
-
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
114
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
113
115
|
* `password` (string): User password.
|
114
116
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
115
117
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -214,7 +216,7 @@ Files::User.create(
|
|
214
216
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
215
217
|
* `group_id` (int64): Group ID to associate this user with.
|
216
218
|
* `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
|
217
|
-
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
219
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
218
220
|
* `password` (string): User password.
|
219
221
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
220
222
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -346,7 +348,7 @@ Files::User.update(id,
|
|
346
348
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
347
349
|
* `group_id` (int64): Group ID to associate this user with.
|
348
350
|
* `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
|
349
|
-
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
351
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
350
352
|
* `password` (string): User password.
|
351
353
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
352
354
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -499,7 +501,7 @@ user.update(
|
|
499
501
|
* `grant_permission` (string): Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
500
502
|
* `group_id` (int64): Group ID to associate this user with.
|
501
503
|
* `group_ids` (string): A list of group ids to associate this user with. Comma delimited.
|
502
|
-
* `imported_password_hash` (string): Pre-calculated hash of the user's password.
|
504
|
+
* `imported_password_hash` (string): Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
503
505
|
* `password` (string): User password.
|
504
506
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
505
507
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
@@ -184,6 +184,11 @@ module Files
|
|
184
184
|
@attributes[:email]
|
185
185
|
end
|
186
186
|
|
187
|
+
# boolean - Is FTP enabled?
|
188
|
+
def ftp_enabled
|
189
|
+
@attributes[:ftp_enabled]
|
190
|
+
end
|
191
|
+
|
187
192
|
# email - Reply-to email for this site
|
188
193
|
def reply_to_email
|
189
194
|
@attributes[:reply_to_email]
|
@@ -449,6 +454,11 @@ module Files
|
|
449
454
|
@attributes[:session_pinned_by_ip]
|
450
455
|
end
|
451
456
|
|
457
|
+
# boolean - Is SFTP enabled?
|
458
|
+
def sftp_enabled
|
459
|
+
@attributes[:sftp_enabled]
|
460
|
+
end
|
461
|
+
|
452
462
|
# boolean - Use user FTP roots also for SFTP?
|
453
463
|
def sftp_user_root_enabled
|
454
464
|
@attributes[:sftp_user_root_enabled]
|
@@ -675,6 +685,8 @@ module Files
|
|
675
685
|
# non_sso_users_allowed - boolean - If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
|
676
686
|
# sharing_enabled - boolean - Allow bundle creation
|
677
687
|
# user_requests_enabled - boolean - Enable User Requests feature
|
688
|
+
# ftp_enabled - boolean - Is FTP enabled?
|
689
|
+
# sftp_enabled - boolean - Is SFTP enabled?
|
678
690
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
679
691
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
680
692
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
@@ -320,6 +320,15 @@ module Files
|
|
320
320
|
@attributes[:require_password_change] = value
|
321
321
|
end
|
322
322
|
|
323
|
+
# boolean - Is user's password expired?
|
324
|
+
def password_expired
|
325
|
+
@attributes[:password_expired]
|
326
|
+
end
|
327
|
+
|
328
|
+
def password_expired=(value)
|
329
|
+
@attributes[:password_expired] = value
|
330
|
+
end
|
331
|
+
|
323
332
|
# boolean - Can this user access the REST API?
|
324
333
|
def restapi_permission
|
325
334
|
@attributes[:restapi_permission]
|
@@ -482,7 +491,7 @@ module Files
|
|
482
491
|
@attributes[:group_id] = value
|
483
492
|
end
|
484
493
|
|
485
|
-
# string - Pre-calculated hash of the user's password.
|
494
|
+
# string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
486
495
|
def imported_password_hash
|
487
496
|
@attributes[:imported_password_hash]
|
488
497
|
end
|
@@ -560,7 +569,7 @@ module Files
|
|
560
569
|
# grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
561
570
|
# group_id - int64 - Group ID to associate this user with.
|
562
571
|
# group_ids - string - A list of group ids to associate this user with. Comma delimited.
|
563
|
-
# imported_password_hash - string - Pre-calculated hash of the user's password.
|
572
|
+
# imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
564
573
|
# password - string - User password.
|
565
574
|
# password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
566
575
|
# announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
|
@@ -720,7 +729,7 @@ module Files
|
|
720
729
|
# grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
721
730
|
# group_id - int64 - Group ID to associate this user with.
|
722
731
|
# group_ids - string - A list of group ids to associate this user with. Comma delimited.
|
723
|
-
# imported_password_hash - string - Pre-calculated hash of the user's password.
|
732
|
+
# imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
724
733
|
# password - string - User password.
|
725
734
|
# password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
726
735
|
# announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
|
@@ -829,7 +838,7 @@ module Files
|
|
829
838
|
# grant_permission - string - Permission to grant on the user root. Can be blank or `full`, `read`, `write`, `list`, or `history`.
|
830
839
|
# group_id - int64 - Group ID to associate this user with.
|
831
840
|
# group_ids - string - A list of group ids to associate this user with. Comma delimited.
|
832
|
-
# imported_password_hash - string - Pre-calculated hash of the user's password.
|
841
|
+
# imported_password_hash - string - Pre-calculated hash of the user's password. If supplied, this will be used to authenticate the user on first login. Supported hash menthods are MD5, SHA1, and SHA256.
|
833
842
|
# password - string - User password.
|
834
843
|
# password_confirmation - string - Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
835
844
|
# announcements_read - boolean - Signifies that the user has read all the announcements in the UI.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.207
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|