Skip to content
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0859753
Add support for AuthPlugins
mofojed Mar 21, 2023
a6065ff
Pass the auth config values to the login plugin
mofojed Mar 22, 2023
c128f82
Add core auth plugins to UI
mofojed Mar 28, 2023
0ef2deb
Add some documentation to auth-plugin about usage
mofojed Mar 28, 2023
8269b59
Add tests for auth plugins, examples to docs
mofojed Mar 29, 2023
4f68c04
Only allow AuthPluginParent when authProvider=parent set
mofojed Mar 29, 2023
cffc364
Merge remote-tracking branch 'origin/main' into auth-plugins
mofojed Apr 11, 2023
7cce112
WIP add a TODO to login in the embedded apps
mofojed Apr 11, 2023
3361741
Pull plugins into their own package, plugin-utils
mofojed Apr 17, 2023
231e0ef
Move loading plugins into it's own util function
mofojed Apr 17, 2023
a3750af
Merge remote-tracking branch 'origin/main' into auth-plugins
mofojed Apr 17, 2023
77e6cff
Fix up conflicts after merging latest main
mofojed Apr 17, 2023
716dd7c
Refactor some of the app initialization code
mofojed Apr 17, 2023
54521f5
Move getClientOptions to the app-utils package
mofojed Apr 18, 2023
c1f89f9
Added initialization bootstrap to app-utils
mofojed Apr 19, 2023
0959b1d
Fix up unit tests and style guide
mofojed Apr 19, 2023
fde0dea
Add AppBootstrap to embed-grid application
mofojed Apr 19, 2023
f5a1c92
Update embed-chart to use AppBootstrap
mofojed Apr 19, 2023
9ac1104
Clean up app-utils based on self-review
mofojed Apr 19, 2023
e5a8fea
Fix plugins loading in embed-grid and embed-chart
mofojed Apr 19, 2023
8cb5884
More cleanup on self-review
mofojed Apr 19, 2023
6964acc
Cleanup after review
mofojed Apr 20, 2023
4f7c5c4
Fix failing tests
mofojed Apr 20, 2023
2a689a6
Add authentication keyword
mofojed Apr 20, 2023
671a083
Merge remote-tracking branch 'origin/main' into auth-plugins
mofojed Apr 20, 2023
0eac926
Add some unit tests for AppBootstrap
mofojed Apr 20, 2023
6882a2f
Add a comment explaining why using useContext instead of usePlugins
mofojed Apr 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 4 additions & 1 deletion jest.config.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ module.exports = {
'.(ts|tsx|js|jsx)': ['babel-jest', { rootMode: 'upward' }],
},
// Makes jest transform monaco, but continue ignoring other node_modules. Used for MonacoUtils test
transformIgnorePatterns: ['node_modules/(?!(monaco-editor|d3-interpolate|d3-color)/)'],
transformIgnorePatterns: [
'node_modules/(?!(monaco-editor|d3-interpolate|d3-color)/)',
],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': path.join(
__dirname,
'./__mocks__/fileMock.js'
),
'^fira$': 'identity-obj-proxy',
'^monaco-editor$': path.join(
__dirname,
'node_modules',
Expand Down
Loading