Skip to content

Commit

Permalink
feat: Core authentication plugins (#1180)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
mofojed authored Apr 20, 2023
1 parent 2f9c020 commit 1624309
Show file tree
Hide file tree
Showing 101 changed files with 2,357 additions and 1,292 deletions.
2 changes: 2 additions & 0 deletions __mocks__/dh-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,8 @@ class CoreClient {
}
}

CoreClient.LOGIN_TYPE_ANONYMOUS = 'MOCK_LOGIN_ANONYNOUS';

class FileContents {
static text(...text) {
return new FileContents(text.join(''));
Expand Down
1 change: 1 addition & 0 deletions jest.config.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
__dirname,
'./__mocks__/fileMock.js'
),
'^fira$': 'identity-obj-proxy',
'^monaco-editor$': path.join(
__dirname,
'node_modules',
Expand Down
6 changes: 6 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ Object.defineProperty(window, 'matchMedia', {
dispatchEvent: jest.fn(),
})),
});

Object.defineProperty(document, 'fonts', {
value: {
ready: Promise.resolve(),
},
});
Loading

0 comments on commit 1624309

Please sign in to comment.