From eb67feeb030cda2e38c96047d4409678c8e44770 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Fri, 15 Nov 2024 12:16:59 +0300 Subject: [PATCH] Merging to release-5.7: [TT-13535/TT-13566] make upstream oauth password client secret not required (#6701) (#6706) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### **User description**
TT-13566
Summary Make upstream auth oauth password client secret not required in oas schema
Type Sub-task Sub-task
Status Ready for Testing
Points N/A
Labels -
--- [TT-13535/TT-13566] make upstream oauth password client secret not required (#6701) ## Description make upstream oauth password client secret not required ## Related Issue Parent: https://tyktech.atlassian.net/browse/TT-13535 Subtask: https://tyktech.atlassian.net/browse/TT-13566 ## Motivation and Context ## How This Has Been Tested ## Screenshots (if appropriate) ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality) ## Checklist - [ ] I ensured that the documentation is up to date - [ ] I explained why this PR updates go.mod in detail with reasoning why it's required - [ ] I would like a code coverage CI quality gate exception and have explained why ___ ### **PR Type** Enhancement ___ ### **Description** - Removed the requirement for `clientSecret` in the OAuth password flow schema, making it optional. - This change allows for more flexible configurations where a client secret is not necessary. ___ ### **Changes walkthrough** 📝
Relevant files
Enhancement
x-tyk-api-gateway.json
Make `clientSecret` optional in OAuth password schema       

apidef/oas/schema/x-tyk-api-gateway.json
  • Removed clientSecret from the list of required fields.
  • Updated the schema to make clientSecret optional for OAuth password
    flows.
  • +0/-1     
    ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information Co-authored-by: Jeffy Mathew --- apidef/oas/schema/x-tyk-api-gateway.json | 1 - 1 file changed, 1 deletion(-) diff --git a/apidef/oas/schema/x-tyk-api-gateway.json b/apidef/oas/schema/x-tyk-api-gateway.json index 77dca6c608d..031cc88bae5 100644 --- a/apidef/oas/schema/x-tyk-api-gateway.json +++ b/apidef/oas/schema/x-tyk-api-gateway.json @@ -2128,7 +2128,6 @@ }, "required": [ "clientId", - "clientSecret", "tokenUrl", "username", "password"