From 88fd7f275897c9931e246baacb077cd72ab19efc Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 8 Apr 2023 16:03:20 +0200 Subject: [PATCH] test comment --- packages/backend/test/e2e/oauth.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/test/e2e/oauth.ts b/packages/backend/test/e2e/oauth.ts index ad64963c6d..7383442fed 100644 --- a/packages/backend/test/e2e/oauth.ts +++ b/packages/backend/test/e2e/oauth.ts @@ -126,6 +126,7 @@ describe('OAuth', () => { test('Require PKCE', async () => { const client = getClient(); + // Pattern 1: No PKCE fields at all let response = await fetch(client.authorizeURL({ redirect_uri, scope: 'write:notes', @@ -133,6 +134,7 @@ describe('OAuth', () => { })); assert.ok(!response.ok); + // Pattern 2: Only code_challenge response = await fetch(client.authorizeURL({ redirect_uri, scope: 'write:notes', @@ -141,6 +143,7 @@ describe('OAuth', () => { })); assert.ok(!response.ok); + // Pattern 2: Only code_challenge_method response = await fetch(client.authorizeURL({ redirect_uri, scope: 'write:notes', @@ -149,6 +152,7 @@ describe('OAuth', () => { })); assert.ok(!response.ok); + // Pattern 3: Unsupported code_challenge_method response = await fetch(client.authorizeURL({ redirect_uri, scope: 'write:notes',