Commit 13ee734
refactor:
* refactor(ts): passport/activeDirectory
* chore: add missing types
* refactor(ts): JWT handler and utils
* refactor(ts): passport/index
* refactor(ts): passport/local
* refactor(ts): passport/ldaphelper
* refactor(ts): passport/oidc
* refactor(ts): auth routes
* refactor(ts): config routes
* refactor(ts): misc routes and index
* refactor(ts): push routes and update related types/db handlers
* refactor(ts): repo routes
* refactor(ts): user routes
* refactor(ts): emailSender and missing implementation
* refactor(ts): service/index and missing types
* refactor(ts): urls
* fix: failing tests due to incorrect imports
* chore: update .eslintrc
* chore: fix type checks
* chore: fix CLI service imports
* chore: run npm format
* test: add basic oidc tests and ignore openid-client type error on import
* test: increase testOidc and testPush coverage
* test: improve push test coverage
* test: add missing smtp tests
* Update .eslintrc.json
Co-authored-by: j-k <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* Update src/db/file/users.ts
Co-authored-by: j-k <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* Update src/service/passport/jwtAuthHandler.ts
Co-authored-by: j-k <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* Update src/service/passport/index.ts
Co-authored-by: j-k <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* chore: fix service/index proxy type and npm run format
* Update src/service/passport/jwtAuthHandler.ts
Co-authored-by: j-k <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* Update src/service/passport/jwtUtils.ts
Co-authored-by: j-k <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* chore: add getSessionStore helper for fs sink and fix types
* chore: remove unnecessary casting for JWT verifiedPayload
* chore: update getSessionStore call
* chore: replace unused UserInfoResponse with imported version
* chore: improve userEmail checks on push routes
* chore: update packages
* chore: add typing for thirdPartyApiConfig
* chore: fix AD passport types
* chore: replace AD type with activedirectory2
* chore: improve loginSuccessHandler
* chore: fix PushQuery typing
* chore: fix "any" in repo and users routes and fix failing tests
* refactor: flatten push routes and fix typings
* chore: add isAdminUser check to repo routes
* test: improve push test checks for cancel endpoint
* chore: fix createDefaultAdmin and isAdminUser functions
* chore: fix thirdPartyApiConfig and AD type errors
* chore: remove nodemailer and unused functionality
This fixes the package bloat due to the nodemailer types library which relies on aws-sdk. It also fixes a license issue caused by an aws-sdk dependency. In the future, we should use a library other than nodemailer when we implement a working email sender.
* chore: fix failing CLI test (email not unique)
* chore: remove unused smtp config variables
* Update src/service/routes/publicApi.ts
Co-authored-by: Kris West <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* chore: fix toPublicUser calls and typing
* chore: update sample test src/service import
* chore: fix type error on AuthenticationElement rename
* chore: remove unused types file and references
* Update src/service/passport/ldaphelper.ts
Co-authored-by: Kris West <[email protected]>
Signed-off-by: Juan Escalada <[email protected]>
* chore: improve jwtAuthHandler checks
* fix: remove gitAccount and fix authorise push route conflicts
fix: return on /create-user
fix: cast res,data to Boolean in ldaHelper
* chore: remove unused reviewerGitAccount processing and fix getProxyUrl url processing
* chore: fix type errors
* fix: convert imports to ESM to fix CLI test failures
* feat: add reviewer email to push authorise endpoint
* chore: remove service parameter from testCliUtils start/stop calls
* chore: add test-package/package-lock.json to .gitignore
* Delete test/fixtures/test-package/package-lock.json
---------
Signed-off-by: Juan Escalada <[email protected]>
Co-authored-by: j-k <[email protected]>
Co-authored-by: Kris West <[email protected]>service module to TS + ESM (v2) (#1166)1 parent 0b64e7f commit 13ee734
File tree
62 files changed
+1613
-1262
lines changed- packages/git-proxy-cli/test
- src
- config
- db
- file
- mongo
- service
- passport
- routes
- types
- test
- fixtures/test-package
- services/routes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+1613
-1262
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
| 107 | + | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
0 commit comments