You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -27,7 +27,7 @@ const appIdsToMindfulKeys = new Map([
27
27
['5f77a1ac0f883d18cbe63efe','fusable'],
28
28
['5f77a1b98eebeee1c3ee53fd','fusable'],
29
29
['5f77a1c80f883d979ae63eff','fusable'],
30
-
['5f77a1e10f883d280fe63f00','randall-reilly'],
30
+
['5f77a1fd0f883d221fe63f01','fusable'],
31
31
['650465135269f6714f6bcdf9','fusable'],
32
32
['5e28a3dd58e67b229e55ae43','im'],
33
33
['5e28a2c558e67b89b255ae3a','ironmarkets'],
@@ -47,6 +47,7 @@ const appIdsToMindfulKeys = new Map([
47
47
['5e28a4c858e67b86c955ae4d','pmmi'],
48
48
['649063f19a64332c8ec42eed','pmmi'],
49
49
['6499da19f70f36fef3aa008c','pmmi'],
50
+
['5f77a1e10f883d280fe63f00','randall-reilly'],
50
51
['6176f26a1fa8d14997cc99f5','rmm'],
51
52
['629bac8439347cfce3861789','smg'],
52
53
['62a20ab439347c3abb862984','smg'],
@@ -57,7 +58,7 @@ const appIdsToMindfulKeys = new Map([
57
58
58
59
const{ log }=console;
59
60
60
-
letnonMindfulAppIdRequests=0;
61
+
constblockedAppIdRequests=newMap();
61
62
62
63
classAppContext{
63
64
constructor(id){
@@ -66,6 +67,12 @@ class AppContext {
66
67
if(this.key&&disabledMinfulKeys.has(this.key)){
67
68
thrownewError(`The IdentityX application ID "${id}" is disabled and must migrated to use the new Mindful API. Please contact support for more information.`);
68
69
}
70
+
if(id&&!this.key){
71
+
constn=blockedAppIdRequests.get(id);
72
+
blockedAppIdRequests.set(id,(n||0)+1);
73
+
log(blockedAppIdRequests);
74
+
thrownewForbiddenError(`The application ID "${id}" is no longer allowed.`);
75
+
}
69
76
70
77
this.app={};
71
78
this.org={};
@@ -110,11 +117,6 @@ class AppContext {
110
117
check(){
111
118
if(this.errored())throwthis.error;
112
119
if(!this.exists())thrownewUserInputError('Unable to find an application for this request.');
113
-
if(!this.key){
114
-
// log number of non-mindful appId requests since this container was started
0 commit comments