From 9587a645b64aadcedca2d0ac783d5af0499ea6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnea=20R=C3=BAn=20Vignisd=C3=B3ttir?= Date: Fri, 17 Jan 2025 14:07:09 +0000 Subject: [PATCH] add to test payload --- libs/auth-nest-tools/src/lib/jwt.strategy.spec.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/auth-nest-tools/src/lib/jwt.strategy.spec.ts b/libs/auth-nest-tools/src/lib/jwt.strategy.spec.ts index ea8cfe82f1ce..3ded9eeb8a8a 100644 --- a/libs/auth-nest-tools/src/lib/jwt.strategy.spec.ts +++ b/libs/auth-nest-tools/src/lib/jwt.strategy.spec.ts @@ -80,6 +80,8 @@ describe('JwtStrategy#validate', () => { nationalId: '1234567890', scope: ['test-scope-1'], client_id: 'test-client', + sub: 'sub', + sid: 'sid', delegationType: [AuthDelegationType.Custom], actor: { nationalId: '1234565555', @@ -122,6 +124,8 @@ describe('JwtStrategy#validate', () => { nationalId: '1234567890', scope: ['test-scope-1'], client_id: 'test-client', + sid: 'sid', + sub: 'sub', } const request = { headers: { @@ -151,6 +155,8 @@ describe('JwtStrategy#validate', () => { nationalId: '1234564321', scope: ['test-scope-2'], }, + sid: 'sid', + sub: 'sub', } // Act @@ -172,12 +178,16 @@ describe('JwtStrategy#validate', () => { scope: ['test-scope-1'], client_id: 'test-client', client_nationalId: '1234565555', + sid: 'sid', + sub: 'sub', } const personPayload: JwtPayload = { scope: ['test-scope-1'], client_id: 'test-client', nationalId: '1234567890', + sub: 'sub', + sid: 'sid', } // Act