Skip to content

Commit 504beb1

Browse files
fix(auth): access config is in config.access
1 parent 9a7f183 commit 504beb1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/support/AdminContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class AdminContext {
154154
if (!attributes.accessConfig) {
155155
attributes.accessConfig = {};
156156
}
157-
const access = config?.data?.access;
157+
const access = config?.access;
158158
if (!access) {
159159
attributes.accessConfig[partition] = {
160160
allow: [],

test/auth/support.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Support Test', () => {
5252
}
5353

5454
describe('Site Auth Test', () => {
55-
it.skip('creates a valid site auth token', async () => {
55+
it.skip('creates a valid site auth token (helix 4)', async () => {
5656
const keyPair = await generateKeyPair('RS256', { extractable: true });
5757
const publicJwk = await exportJWK(keyPair.publicKey);
5858
Object.assign(jwks.keys[0], publicJwk);
@@ -77,7 +77,7 @@ describe('Support Test', () => {
7777
assert.strictEqual(context.attributes.accessConfig.live.token, token);
7878
});
7979

80-
it.skip('creates a valid site auth token', async () => {
80+
it('creates a valid site auth token', async () => {
8181
const { context } = setupTest({
8282
access: {
8383
apiKeyId: '1234',
@@ -130,7 +130,7 @@ describe('Support Test', () => {
130130
});
131131
});
132132

133-
it.skip('returns default access config', async () => {
133+
it('returns default access config', async () => {
134134
const { context } = setupTest({
135135
access: {
136136
allow: '*@adobe.com',
@@ -143,7 +143,7 @@ describe('Support Test', () => {
143143
});
144144
});
145145

146-
it.skip('can partially overwrite access config', async () => {
146+
it('can partially overwrite access config', async () => {
147147
const { context } = setupTest({
148148
access: {
149149
allow: '*@adobe.com',

0 commit comments

Comments
 (0)