From 5132ae873d1f5c5b57b1016d57236645a5cd2db7 Mon Sep 17 00:00:00 2001 From: Samira Mokaram Date: Tue, 17 Aug 2021 11:45:03 +0200 Subject: [PATCH] fix test Signed-off-by: Samira Mokaram --- plugins/auth-backend/src/lib/oauth/OAuthAdapter.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/auth-backend/src/lib/oauth/OAuthAdapter.test.ts b/plugins/auth-backend/src/lib/oauth/OAuthAdapter.test.ts index 0b35ea7bc8..27b629cc07 100644 --- a/plugins/auth-backend/src/lib/oauth/OAuthAdapter.test.ts +++ b/plugins/auth-backend/src/lib/oauth/OAuthAdapter.test.ts @@ -64,6 +64,7 @@ describe('OAuthAdapter', () => { issueToken: async () => 'my-id-token', listPublicKeys: async () => ({ keys: [] }), }, + isOriginAllowed: () => false, }; it('sets the correct headers in start', async () => { @@ -105,6 +106,7 @@ describe('OAuthAdapter', () => { const oauthProvider = new OAuthAdapter(providerInstance, { ...oAuthProviderOptions, disableRefresh: false, + isOriginAllowed: () => false, }); const state = { nonce: 'nonce', env: 'development' }; @@ -139,6 +141,7 @@ describe('OAuthAdapter', () => { const oauthProvider = new OAuthAdapter(providerInstance, { ...oAuthProviderOptions, disableRefresh: true, + isOriginAllowed: () => false, }); const mockRequest = { @@ -164,6 +167,7 @@ describe('OAuthAdapter', () => { const oauthProvider = new OAuthAdapter(providerInstance, { ...oAuthProviderOptions, disableRefresh: false, + isOriginAllowed: () => false, }); const mockRequest = { @@ -190,6 +194,7 @@ describe('OAuthAdapter', () => { const oauthProvider = new OAuthAdapter(providerInstance, { ...oAuthProviderOptions, disableRefresh: false, + isOriginAllowed: () => false, }); const mockRequest = { @@ -220,6 +225,7 @@ describe('OAuthAdapter', () => { const oauthProvider = new OAuthAdapter(providerInstance, { ...oAuthProviderOptions, disableRefresh: true, + isOriginAllowed: () => false, }); const mockRequest = {