@frontegg/rest-api 3.0.71 → 3.0.73
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/auth/enums.d.ts +4 -0
- package/auth/enums.js +8 -1
- package/auth/interfaces.d.ts +2 -1
- package/index.js +1 -1
- package/node/auth/enums.js +10 -2
- package/node/index.js +1 -1
- package/package.json +1 -1
package/auth/enums.d.ts
CHANGED
package/auth/enums.js
CHANGED
|
@@ -18,4 +18,11 @@ export let AuthStrategyEnum;
|
|
|
18
18
|
AuthStrategyEnum["Code"] = "Code";
|
|
19
19
|
AuthStrategyEnum["NoLocalAuthentication"] = "NoLocalAuthentication";
|
|
20
20
|
AuthStrategyEnum["SmsCode"] = "SmsCode";
|
|
21
|
-
})(AuthStrategyEnum || (AuthStrategyEnum = {}));
|
|
21
|
+
})(AuthStrategyEnum || (AuthStrategyEnum = {}));
|
|
22
|
+
|
|
23
|
+
export let MachineToMachineAuthStrategy;
|
|
24
|
+
|
|
25
|
+
(function (MachineToMachineAuthStrategy) {
|
|
26
|
+
MachineToMachineAuthStrategy["ClientCredentials"] = "ClientCredentials";
|
|
27
|
+
MachineToMachineAuthStrategy["AccessToken"] = "AccessToken";
|
|
28
|
+
})(MachineToMachineAuthStrategy || (MachineToMachineAuthStrategy = {}));
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ITenantsResponse, IUserProfile } from "..";
|
|
2
|
-
import { AuthStrategyEnum, SocialLoginProviders } from "./enums";
|
|
2
|
+
import { AuthStrategyEnum, MachineToMachineAuthStrategy, SocialLoginProviders } from "./enums";
|
|
3
3
|
import { ISamlRolesGroup } from "../teams/interfaces";
|
|
4
4
|
export * from "./secutiry-poilicy/interfaces";
|
|
5
5
|
export declare type IPreLogin = {
|
|
@@ -179,6 +179,7 @@ export interface IVendorConfig {
|
|
|
179
179
|
apiTokensEnabled: boolean;
|
|
180
180
|
forcePermissions: boolean;
|
|
181
181
|
authStrategy: AuthStrategyEnum;
|
|
182
|
+
machineToMachineAuthStrategy: MachineToMachineAuthStrategy;
|
|
182
183
|
}
|
|
183
184
|
export interface ISignUpUser {
|
|
184
185
|
email: string;
|
package/index.js
CHANGED
package/node/auth/enums.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SocialLoginProviders = exports.AuthStrategyEnum = void 0;
|
|
6
|
+
exports.SocialLoginProviders = exports.MachineToMachineAuthStrategy = exports.AuthStrategyEnum = void 0;
|
|
7
7
|
let SocialLoginProviders;
|
|
8
8
|
exports.SocialLoginProviders = SocialLoginProviders;
|
|
9
9
|
|
|
@@ -26,4 +26,12 @@ exports.AuthStrategyEnum = AuthStrategyEnum;
|
|
|
26
26
|
AuthStrategyEnum["Code"] = "Code";
|
|
27
27
|
AuthStrategyEnum["NoLocalAuthentication"] = "NoLocalAuthentication";
|
|
28
28
|
AuthStrategyEnum["SmsCode"] = "SmsCode";
|
|
29
|
-
})(AuthStrategyEnum || (exports.AuthStrategyEnum = AuthStrategyEnum = {}));
|
|
29
|
+
})(AuthStrategyEnum || (exports.AuthStrategyEnum = AuthStrategyEnum = {}));
|
|
30
|
+
|
|
31
|
+
let MachineToMachineAuthStrategy;
|
|
32
|
+
exports.MachineToMachineAuthStrategy = MachineToMachineAuthStrategy;
|
|
33
|
+
|
|
34
|
+
(function (MachineToMachineAuthStrategy) {
|
|
35
|
+
MachineToMachineAuthStrategy["ClientCredentials"] = "ClientCredentials";
|
|
36
|
+
MachineToMachineAuthStrategy["AccessToken"] = "AccessToken";
|
|
37
|
+
})(MachineToMachineAuthStrategy || (exports.MachineToMachineAuthStrategy = MachineToMachineAuthStrategy = {}));
|
package/node/index.js
CHANGED