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

Do not require a secret in OAuth configurations

GitOrigin-RevId: 8d67436bc9366ef5991c02e89a81dbbf573196d7
This commit is contained in:
Eric Mc Sween
2025-05-01 07:42:44 -04:00
committed by Copybot
parent 306b5d4f55
commit 46ff22cab7
@@ -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)