Commit c4db376
authored
fix(cli-repl): use JS Proxy for forwarding lazy-loaded webpack function exports MONGOSH-1743 (#1896)
This fixes OIDC for compiled executables, because class exports
like the `Issuer` class from `openid-client` or `IncomingMessage`
from `http` did not fully have properties on the function and/or
its prototype forwarded, effectively breaking the feature.
This was not caught by our e2e tests because they were first written
before the 7.x+ server was the default stable one, and therefore
additional checks needed to be added to the test conditions for it.
It is now safe to remove those checks, which will make the OIDC e2e
tests run as part of our regular e2e test suite for
compiled executables (on systems that support 7.x+ servers).1 parent 2a9140c commit c4db376
File tree
2 files changed
+13
-9
lines changed- packages
- cli-repl
- e2e-tests/test
2 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
0 commit comments