@frontegg/redux-store 6.71.0 → 6.72.0

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.
@@ -1,4 +1,4 @@
1
- import { ITeamUserPermission, ITeamUserRole } from '@frontegg/rest-api';
1
+ import { ITeamUserPermission, ITeamUserRole, MachineToMachineAuthStrategy } from '@frontegg/rest-api';
2
2
  import { LoaderIndicatorState, WithCallback } from '../../interfaces';
3
3
  export interface ApiTokensState {
4
4
  loaders: LoaderIndicatorState<ApiStateKeys>;
@@ -24,6 +24,7 @@ export interface ApiTokensState {
24
24
  }
25
25
  export declare type ApiTokenType = 'user' | 'tenant' | null;
26
26
  export declare type createdByUserIdColumn = 'show' | 'hide' | undefined;
27
+ export { MachineToMachineAuthStrategy };
27
28
  export interface IApiTokensData {
28
29
  clientId?: string;
29
30
  createdAt: string;
@@ -1,3 +1,5 @@
1
+ import { MachineToMachineAuthStrategy } from '@frontegg/rest-api';
2
+ export { MachineToMachineAuthStrategy };
1
3
  export let ApiStateKeys;
2
4
  (function (ApiStateKeys) {
3
5
  ApiStateKeys["LOAD_API_TOKENS"] = "LOAD_API_TOKENS";
package/auth/dummy.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { AuthStrategyEnum, RestrictionType } from '@frontegg/rest-api';
3
+ import { MachineToMachineAuthStrategy } from './ApiTokensState/interfaces';
3
4
  export const apiTokensDataDemo = {
4
5
  clientId: 'CLIENT_ID_16806d3d-8fc3-4450-be97-abdaf66b723e',
5
6
  secret: 'SECRET_16806d3d-8fc3-4450-be97-abdaf66b723e',
@@ -116,7 +117,8 @@ export const publicSecurityPolicy = {
116
117
  allowNotVerifiedUsersLogin: false,
117
118
  apiTokensEnabled: true,
118
119
  forcePermissions: false,
119
- authStrategy: AuthStrategyEnum.EmailAndPassword
120
+ authStrategy: AuthStrategyEnum.EmailAndPassword,
121
+ machineToMachineAuthStrategy: MachineToMachineAuthStrategy.ClientCredentials
120
122
  };
121
123
  export const policyMfaDemo = {
122
124
  id: 'id',
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.71.0
1
+ /** @license Frontegg v6.72.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ApiStateKeys = void 0;
7
+ Object.defineProperty(exports, "MachineToMachineAuthStrategy", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _restApi.MachineToMachineAuthStrategy;
11
+ }
12
+ });
13
+ var _restApi = require("@frontegg/rest-api");
7
14
  let ApiStateKeys;
8
15
  exports.ApiStateKeys = ApiStateKeys;
9
16
  (function (ApiStateKeys) {
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.usersDemo = exports.userTeamDemo2 = exports.userTeamDemo = exports.userSubTenantDemo = exports.userProfileDemo = exports.userDemo = exports.tenantsDemo = exports.ssoStateDemo = exports.sessionsMock = exports.sessionsConfigDummies = exports.samlMetadataDemo = exports.samlConfigurationDemo = exports.rolesDemo = exports.rolesAdminViewerDemo = exports.rolePermissionDemo = exports.roleDemo = exports.publicSecurityPolicy = exports.profileStateDemo = exports.policyPasswordHistoryDemo = exports.policyMfaDemo = exports.policyLockoutDemo = exports.policyDemo = exports.permissionsDemo = exports.dummyIps = exports.dummyIpConfig = exports.apiTokensDataTenantDemo = exports.apiTokensDataDemo = exports.allUsersDemo = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _restApi = require("@frontegg/rest-api");
10
+ var _interfaces = require("./ApiTokensState/interfaces");
10
11
  const apiTokensDataDemo = {
11
12
  clientId: 'CLIENT_ID_16806d3d-8fc3-4450-be97-abdaf66b723e',
12
13
  secret: 'SECRET_16806d3d-8fc3-4450-be97-abdaf66b723e',
@@ -132,7 +133,8 @@ const publicSecurityPolicy = {
132
133
  allowNotVerifiedUsersLogin: false,
133
134
  apiTokensEnabled: true,
134
135
  forcePermissions: false,
135
- authStrategy: _restApi.AuthStrategyEnum.EmailAndPassword
136
+ authStrategy: _restApi.AuthStrategyEnum.EmailAndPassword,
137
+ machineToMachineAuthStrategy: _interfaces.MachineToMachineAuthStrategy.ClientCredentials
136
138
  };
137
139
  exports.publicSecurityPolicy = publicSecurityPolicy;
138
140
  const policyMfaDemo = {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.71.0
1
+ /** @license Frontegg v6.72.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.71.0",
3
+ "version": "6.72.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/rest-api": "3.0.71",
9
+ "@frontegg/rest-api": "3.0.74",
10
10
  "@reduxjs/toolkit": "^1.8.5",
11
11
  "redux-saga": "^1.2.1",
12
12
  "uuid": "^8.3.2"