Skip to content

Commit 1624309

Browse files
authored
feat: Core authentication plugins (#1180)
- Add authentication plugins framework - Add core plugins (Pre-shared key, Parent, and anonymous authentication) - Fixes #1058 - Refactored app initialization so embed-grid and embed-chart share the same logic - Allows embed-grid/embed-chart to display a login screen if necessary - embed-grid/embed-chart now also authorize
1 parent 2f9c020 commit 1624309

101 files changed

Lines changed: 2357 additions & 1292 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

__mocks__/dh-core.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,8 @@ class CoreClient {
12591259
}
12601260
}
12611261

1262+
CoreClient.LOGIN_TYPE_ANONYMOUS = 'MOCK_LOGIN_ANONYNOUS';
1263+
12621264
class FileContents {
12631265
static text(...text) {
12641266
return new FileContents(text.join(''));

jest.config.base.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
__dirname,
1919
'./__mocks__/fileMock.js'
2020
),
21+
'^fira$': 'identity-obj-proxy',
2122
'^monaco-editor$': path.join(
2223
__dirname,
2324
'node_modules',

jest.setup.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ Object.defineProperty(window, 'matchMedia', {
2929
dispatchEvent: jest.fn(),
3030
})),
3131
});
32+
33+
Object.defineProperty(document, 'fonts', {
34+
value: {
35+
ready: Promise.resolve(),
36+
},
37+
});

0 commit comments

Comments
 (0)