From 46ff22cab7f89f4167d9ddf94bad573f322e0db8 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween <5454374+emcsween@users.noreply.github.com> Date: Thu, 1 May 2025 07:42:44 -0400 Subject: [PATCH] Merge pull request #25064 from overleaf/em-oauth-no-secret Do not require a secret in OAuth configurations GitOrigin-RevId: 8d67436bc9366ef5991c02e89a81dbbf573196d7 --- services/web/scripts/oauth/register_client.mjs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/services/web/scripts/oauth/register_client.mjs b/services/web/scripts/oauth/register_client.mjs index 6f14ae1230..a3b798155b 100644 --- a/services/web/scripts/oauth/register_client.mjs +++ b/services/web/scripts/oauth/register_client.mjs @@ -16,10 +16,6 @@ async function main() { console.error('Missing --name option') process.exit(1) } - if (opts.secret == null) { - console.error('Missing --secret option') - process.exit(1) - } } else { console.log(`Updating configuration for client: ${application.name}`) if (opts.mongoId != null) { @@ -104,7 +100,7 @@ Creates or updates an OAuth client configuration Options: --name Descriptive name for the OAuth client (required for creation) - --secret Client secret (required for creation) + --secret Client secret --scope Accepted scope (can be given more than once) --grant Accepted grant type (can be given more than once) --redirect-uri Accepted redirect URI (can be given more than once)