Преглед изворни кода

Merge pull request #25064 from overleaf/em-oauth-no-secret

Do not require a secret in OAuth configurations

GitOrigin-RevId: 8d67436bc9366ef5991c02e89a81dbbf573196d7
Eric Mc Sween пре 1 година
родитељ
комит
6f05a43f32
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 5
      services/web/scripts/oauth/register_client.mjs

+ 1 - 5
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)