Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: define supported interceptors for HAWK authentication

jamesgeorge007bed898b5236a
diff --git a/packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts b/packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts
index 4ac554d4f..272635bef 100644
--- a/packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts
+++ b/packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts
@@ -65,7 +65,7 @@ export class AgentKernelInterceptorService
"urlencoded",
"compression",
]),
- auth: new Set(["basic", "bearer", "apikey", "digest", "aws"]),
+ auth: new Set(["basic", "bearer", "apikey", "digest", "aws", "hawk"]),
security: new Set([
"clientcertificates",
"cacertificates",
diff --git a/packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts b/packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts
index 6b2ede161..c2129b47b 100644
--- a/packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts
+++ b/packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts
@@ -58,7 +58,7 @@ export class NativeKernelInterceptorService
"urlencoded",
"compression",
]),
- auth: new Set(["basic", "bearer", "apikey", "digest", "aws"]),
+ auth: new Set(["basic", "bearer", "apikey", "digest", "aws", "hawk"]),
security: new Set([
"clientcertificates",
"cacertificates",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d5a011be6..b6aec5e3a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -70,7 +70,7 @@ importers:
version: 1.5.1
'@rollup/plugin-typescript':
specifier: 12.1.1
mocha:
specifier: 9.2.2
version: 9.2.2
@@ -155,43 +155,43 @@ importers:
version: 4.11.0([email protected])
'@nestjs-modules/mailer':
specifier: 2.0.2
'@nestjs/apollo':
specifier: 12.2.0
'@nestjs/common':
- specifier: 10.4.4
+ specifier: 10.4.16
'@nestjs/config':
specifier: 3.2.3
'@nestjs/core':
specifier: 10.4.4
'@nestjs/graphql':
specifier: 12.2.0
'@nestjs/jwt':
specifier: 10.2.0
'@nestjs/passport':
specifier: 10.0.3
'@nestjs/platform-express':
specifier: 10.4.4
'@nestjs/schedule':
specifier: 4.1.1
'@nestjs/swagger':
specifier: 7.4.2
'@nestjs/terminus':
specifier: 10.2.3
'@nestjs/throttler':
specifier: 6.2.1
'@prisma/client':
specifier: 5.20.0
version: 5.20.0([email protected])
@@ -291,7 +291,7 @@ importers:
'@nestjs/testing':
specifier: 10.4.4
'@relmify/jest-fp-ts':
specifier: 2.1.1
@@ -4410,11 +4410,12 @@ packages:
'@swc/core':
optional: true
- '@nestjs/[email protected]':
- resolution: {integrity: sha512-0j2/zqRw9nvHV1GKTktER8B/hIC/Z8CYFjN/ZqUuvwayCH+jZZBhCR2oRyuvLTXdnlSmtCAg2xvQ0ULqQvzqhA==}
+ '@nestjs/[email protected]':
+ resolution: {integrity: sha512-40jE0Na48HJ0xDcvmejzOQzaZttqwc0wkMyfDveG70L4hKBohL1FV1nEHoPicqbifkxOQAI+vrWaVwtRwm5g5g==}
peerDependencies:
class-transformer: '*'
class-validator: '*'
+ file-type: ^20.4.1
reflect-metadata: ^0.1.12 || ^0.2.0
rxjs: ^7.1.0
peerDependenciesMeta:
@@ -4422,6 +4423,8 @@ packages:
optional: true
class-validator:
optional: true
+ file-type:
+ optional: true
'@nestjs/[email protected]':
resolution: {integrity: sha512-p6yv/CvoBewJ72mBq4NXgOAi2rSQNWx3a+IMJLVKS2uiwFCOQQuiIatGwq6MRjXV3Jr+B41iUO8FIf4xBrZ4/w==}
@@ -11955,6 +11958,9 @@ packages:
resolution: {integrity: sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==}
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+
resolution: {integrity: sha512-ALscEeyS03IomcuNdFdc0YWGVIkwH1Ws7nfTbAPuoILvEV2hpGQAY72LIOjglGo4ShWpZfpBqP/jpQVCzqYQag==}
engines: {node: '>=18'}
@@ -16726,11 +16732,11 @@ snapshots:
'@microsoft/[email protected]': {}
dependencies:
'@css-inline/css-inline': 0.14.1
glob: 10.3.12
nodemailer: 6.9.15
optionalDependencies:
@@ -16753,13 +16759,13 @@ snapshots:
- typescript
- uncss
dependencies:
'@apollo/server': 4.11.0([email protected])
'@apollo/server-plugin-landing-page-graphql-playground': 4.0.0(@apollo/[email protected]([email protected]))
graphql: 16.9.0
iterall: 1.3.0
lodash.omit: 4.5.0
@@ -16793,28 +16799,28 @@ snapshots:
- uglify-js
- webpack-cli
dependencies:
iterare: 1.2.1
reflect-metadata: 0.2.2
rxjs: 7.8.1
- tslib: 2.7.0
+ tslib: 2.8.1
uid: 2.0.2
optionalDependencies:
class-transformer: 0.5.1
class-validator: 0.14.1
dependencies:
dotenv: 16.4.5
dotenv-expand: 10.0.0
lodash: 4.17.21
rxjs: 7.8.1
dependencies:
'@nuxtjs/opencollective': 0.3.2
fast-safe-stringify: 2.1.1
iterare: 1.2.1
@@ -16824,18 +16830,18 @@ snapshots:
tslib: 2.7.0
uid: 2.0.2
optionalDependencies:
transitivePeerDependencies:
- encoding
dependencies:
'@graphql-tools/merge': 9.0.4([email protected])
'@graphql-tools/schema': 10.0.4([email protected])
'@graphql-tools/utils': 10.2.3([email protected])
chokidar: 3.6.0
fast-glob: 3.3.2
graphql: 16.9.0
@@ -16855,29 +16861,29 @@ snapshots:
- bufferutil
- utf-8-validate
dependencies:
'@types/jsonwebtoken': 9.0.5
jsonwebtoken: 9.0.2
dependencies:
reflect-metadata: 0.2.2
optionalDependencies:
class-transformer: 0.5.1
class-validator: 0.14.1
dependencies:
passport: 0.7.0
dependencies:
body-parser: 1.20.3
cors: 2.8.5
express: 4.21.0
@@ -16886,10 +16892,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
cron: 3.1.7
uuid: 10.0.0
@@ -16915,12 +16921,12 @@ snapshots:
transitivePeerDependencies:
- chokidar
dependencies:
'@microsoft/tsdoc': 0.15.0
js-yaml: 4.1.0
lodash: 4.17.21
path-to-regexp: 3.3.0
@@ -16930,10 +16936,10 @@ snapshots:
class-transformer: 0.5.1
class-validator: 0.14.1
dependencies:
boxen: 5.1.2
check-disk-space: 3.4.0
reflect-metadata: 0.2.2
@@ -16941,18 +16947,18 @@ snapshots:
optionalDependencies:
'@prisma/client': 5.20.0([email protected])
dependencies:
tslib: 2.7.0
optionalDependencies:
dependencies:
reflect-metadata: 0.2.2
@@ -17211,14 +17217,14 @@ snapshots:
rollup: 4.24.0
tslib: 2.8.0
dependencies:
'@rollup/pluginutils': 5.1.2([email protected])
resolve: 1.22.8
typescript: 5.2.2
optionalDependencies:
rollup: 3.29.4
- tslib: 2.8.0
+ tslib: 2.8.1
dependencies:
@@ -26661,6 +26667,8 @@ snapshots:
+
dependencies:
bundle-require: 5.0.0([email protected])