feat: add basic auth with guard and middleware. Make basic auth optional and...
feat: add basic auth with guard and middleware. Make basic auth optional and only for massaging, later we should add jwt auth for the rest of the endpoints if we are going to use the project with ocm-ui
Signed-off-by:
Zdravko Iliev <zdravko.iliev@vereign.com>
parent
e4a56fba
No related branches found
No related tags found
Showing
- libs/askar/src/agent.utils.ts 128 additions, 0 deletionslibs/askar/src/agent.utils.ts
- libs/askar/src/askar-rest/askar.rest.module.ts 25 additions, 4 deletionslibs/askar/src/askar-rest/askar.rest.module.ts
- libs/askar/src/askar-rest/auth/basic.guard.ts 5 additions, 0 deletionslibs/askar/src/askar-rest/auth/basic.guard.ts
- libs/askar/src/askar-rest/auth/basic.middleware.ts 48 additions, 0 deletionslibs/askar/src/askar-rest/auth/basic.middleware.ts
- libs/askar/src/askar-rest/auth/basic.strategy.ts 28 additions, 0 deletionslibs/askar/src/askar-rest/auth/basic.strategy.ts
- libs/askar/src/askar-rest/rest.controller.ts 2 additions, 1 deletionlibs/askar/src/askar-rest/rest.controller.ts
- libs/askar/src/askar/agent.event.listener.servce.ts 16 additions, 97 deletionslibs/askar/src/askar/agent.event.listener.servce.ts
- libs/config/src/config/agent.config.ts 2 additions, 0 deletionslibs/config/src/config/agent.config.ts
- libs/config/src/interfaces/agent.config.interface.ts 3 additions, 0 deletionslibs/config/src/interfaces/agent.config.interface.ts
- package.json 6 additions, 0 deletionspackage.json
- yarn.lock 71 additions, 1 deletionyarn.lock
... | ... | @@ -41,6 +41,7 @@ |
"@nestjs/config": "^2.3.1", | ||
"@nestjs/core": "^9.0.0", | ||
"@nestjs/microservices": "^9.4.2", | ||
"@nestjs/passport": "^10.0.1", | ||
"@nestjs/platform-express": "^9.0.0", | ||
"@nestjs/platform-ws": "^10.1.3", | ||
"@nestjs/websockets": "^9.4.2", | ||
... | ... | @@ -51,6 +52,9 @@ |
"cloudevents": "^7.0.0", | ||
"joi": "^17.9.2", | ||
"nats": "^2.14.0", | ||
"passport": "^0.6.0", | ||
"passport-http": "^0.3.0", | ||
"passport-local": "^1.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"rxjs": "^7.0.0", | ||
"tslib": "^2.3.0", | ||
... | ... | @@ -83,6 +87,8 @@ |
"@types/async-retry": "^1.4.5", | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "~18.7.1", | ||
"@types/passport-http": "^0.3.9", | ||
"@types/passport-local": "^1.0.35", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@typescript-eslint/parser": "^5.58.0", | ||
"concurrently": "^8.2.0", | ||
... | ... |
Please register or sign in to comment