Skip to content
77 changes: 51 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"nconf": "^0.13.0",
"promise-pool-executor": "^1.1.1",
"sanitize-filename": "^1.6.3",
"undici": "^7.11.0",
"undici": "^7.12.0",
"winston": "^3.17.0",
"yargs": "^15.4.1"
},
Expand All @@ -55,8 +55,8 @@
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.10.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"husky": "^9.1.7",
"kacl": "^1.1.1",
Expand Down
13 changes: 12 additions & 1 deletion src/tools/auth0/handlers/resourceServers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ResourceServer } from 'auth0';
import { ResourceServer, ResourceServerProofOfPossessionMechanismEnum } from 'auth0';
import ValidationError from '../../validationError';

import constants from '../../constants';
Expand Down Expand Up @@ -31,6 +31,17 @@ export const schema = {
},
enforce_policies: { type: 'boolean' },
token_dialect: { type: 'string' },
proof_of_possession: {
type: 'object',
properties: {
mechanism: {
type: 'string',
enum: Object.values(ResourceServerProofOfPossessionMechanismEnum),
},
required: { type: 'boolean' },
},
required: ['mechanism', 'required'],
},
},
required: ['name', 'identifier'],
},
Expand Down
11 changes: 7 additions & 4 deletions test/context/directory/context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,25 @@ describe('#directory context validation', () => {
{
tenants: {
getSettings: async () =>
new Promise((res) =>
new Promise((res) => {
res({
data: {
friendly_name: 'Production Tenant',
enabled_locales: ['en', 'es'],
},
})
),
});
}),
},
prompts: {
_getRestClient: (endpoint) => ({
get: (...options) => Promise.resolve({ endpoint, method: 'get', options }),
}),
},
actions: {
getSettings: async () => new Promise((res) => res([])),
getSettings: async () =>
new Promise((res) => {
res([]);
}),
},
}
);
Expand Down
8 changes: 4 additions & 4 deletions test/context/yaml/context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,14 +610,14 @@ describe('#YAML context validation', () => {
{
tenants: {
getSettings: async () =>
new Promise((res) =>
res({
new Promise((resolve) => {
resolve({
data: {
friendly_name: 'Production Tenant',
enabled_locales: ['en', 'es'],
},
})
),
});
}),
},
connections: {
getAll: (params) =>
Expand Down
Loading