files.com 1.0.155 → 1.0.156
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/Session.js +6 -0
- package/lib/models/Site.js +3 -0
- package/package.json +1 -1
- package/src/models/Session.js +7 -0
- package/src/models/Site.js +4 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.156
|
package/lib/models/Session.js
CHANGED
@@ -137,6 +137,12 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
|
|
137
137
|
(0, _defineProperty2.default)(this, "setAllowed2faMethodU2f", function (value) {
|
138
138
|
_this.attributes.allowed_2fa_method_u2f = value;
|
139
139
|
});
|
140
|
+
(0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
|
141
|
+
return _this.attributes.allowed_2fa_method_webauthn;
|
142
|
+
});
|
143
|
+
(0, _defineProperty2.default)(this, "setAllowed2faMethodWebauthn", function (value) {
|
144
|
+
_this.attributes.allowed_2fa_method_webauthn = value;
|
145
|
+
});
|
140
146
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
|
141
147
|
return _this.attributes.allowed_2fa_method_yubi;
|
142
148
|
});
|
package/lib/models/Site.js
CHANGED
@@ -53,6 +53,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
53
53
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodU2f", function () {
|
54
54
|
return _this.attributes.allowed_2fa_method_u2f;
|
55
55
|
});
|
56
|
+
(0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
|
57
|
+
return _this.attributes.allowed_2fa_method_webauthn;
|
58
|
+
});
|
56
59
|
(0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
|
57
60
|
return _this.attributes.allowed_2fa_method_yubi;
|
58
61
|
});
|
package/package.json
CHANGED
package/src/models/Session.js
CHANGED
@@ -134,6 +134,13 @@ class Session {
|
|
134
134
|
this.attributes.allowed_2fa_method_u2f = value
|
135
135
|
}
|
136
136
|
|
137
|
+
// boolean # Sent only if 2FA setup is needed. Is WebAuthn two factor authentication allowed?
|
138
|
+
getAllowed2faMethodWebauthn = () => this.attributes.allowed_2fa_method_webauthn
|
139
|
+
|
140
|
+
setAllowed2faMethodWebauthn = value => {
|
141
|
+
this.attributes.allowed_2fa_method_webauthn = value
|
142
|
+
}
|
143
|
+
|
137
144
|
// boolean # Sent only if 2FA setup is needed. Is Yubikey two factor authentication allowed?
|
138
145
|
getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
|
139
146
|
|
package/src/models/Site.js
CHANGED
@@ -34,6 +34,9 @@ class Site {
|
|
34
34
|
// boolean # Is U2F two factor authentication allowed?
|
35
35
|
getAllowed2faMethodU2f = () => this.attributes.allowed_2fa_method_u2f
|
36
36
|
|
37
|
+
// boolean # Is WebAuthn two factor authentication allowed?
|
38
|
+
getAllowed2faMethodWebauthn = () => this.attributes.allowed_2fa_method_webauthn
|
39
|
+
|
37
40
|
// boolean # Is yubikey two factor authentication allowed?
|
38
41
|
getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
|
39
42
|
|
@@ -482,6 +485,7 @@ class Site {
|
|
482
485
|
// allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
483
486
|
// allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
484
487
|
// allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
488
|
+
// allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
|
485
489
|
// allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
|
486
490
|
// require_2fa - boolean - Require two-factor authentication for all users?
|
487
491
|
// 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)?
|