This repository was archived by the owner on Nov 7, 2023. It is now read-only.
Commit 59f76f2
Express did auth implementation (#64)
* First building version of the new express-did-auth package
* Added session manager and signed sdr
* Added tests for challenge verifier and counter
* Tests for session manager
* Improved scaffolding
* Some factories tests
* Lint
* Authentication factory tests
* Express middleware tests
* Added refresh token tests
* Added integration tests
* Fix typos and added README
* Fix typo
* Adressed LGTM alert
* Renamed jwt-helpers to jwt-utils and added unit tests for JWT
* Added integration tests with cookies
* Reset mockdate after each test
* Separated integration tests in different files
* Added LGTM suggestion
* Lint
* Added Math.floor for test challenge generator and removed test console.log
* Addressed some PR comments and skipped cookies tests due csrf
* Remove signup option to make it mandatory
* Named exports for factories
* if not if, so it returns quick and makes the code more readable
* Removed enum from errors, use export const instead
* Return middleware in the setup method
* Added @types dependencies
* Use daf-selective-disclosure types
* Extracted app state
* Adapt configs
* Express did auth refactor (#65)
* Refactor auth factory
* Refactor SessionManager
* Refactor RequestCounter
* Refactor ChallengeVerifier
* Refactor express middleware factory
* Lint
Co-authored-by: Ilan <36084092+ilanolkies@users.noreply.github.com>1 parent bdcf740 commit 59f76f2
File tree
36 files changed
+3865
-1
lines changed- packages
- express-did-auth
- src
- classes
- factories
- test
36 files changed
+3865
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments