Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-13375] Improved Upstream Auth validation rules (#6694)
### **User description** <details open> <summary><a href="https://tyktech.atlassian.net/browse/TT-13375" title="TT-13375" target="_blank">TT-13375</a></summary> <br /> <table> <tr> <th>Summary</th> <td>Validate Upstream Auth settings</td> </tr> <tr> <th>Type</th> <td> <img alt="Story" src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10315?size=medium" /> Story </td> </tr> <tr> <th>Status</th> <td>Ready for Testing</td> </tr> <tr> <th>Points</th> <td>N/A</td> </tr> <tr> <th>Labels</th> <td>-</td> </tr> </table> </details> <!-- do not remove this marker as it will break jira-lint's functionality. added_by_jira_lint --> --- https://tyktech.atlassian.net/browse/TT-13375 ## Description Made Upstream Auth basic auth fields required: pwd, username and header Made Upstream Oauth enabled and allowedAuthorizeTypes required ___ ### **PR Type** enhancement ___ ### **Description** - Enhanced validation rules for Upstream Basic Authentication by making `username` and `password` fields required. - Changed the `headerName` field to `header` in `X-Tyk-UpstreamBasicAuthentication`, referencing `X-Tyk-AuthSource`. - Updated `X-Tyk-UpstreamOAuth` to require `allowedAuthorizeTypes` and allow `extraMetadata` to be `null`. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>x-tyk-api-gateway.json</strong><dd><code>Enhance validation rules for Upstream Auth configurations</code></dd></summary> <hr> apidef/oas/schema/x-tyk-api-gateway.json <li>Made <code>username</code> and <code>password</code> fields required in <br><code>X-Tyk-UpstreamBasicAuthentication</code>.<br> <li> Changed <code>headerName</code> to <code>header</code> with a reference to <code>X-Tyk-AuthSource</code>.<br> <li> Made <code>allowedAuthorizeTypes</code> required in <code>X-Tyk-UpstreamOAuth</code>.<br> <li> Allowed <code>extraMetadata</code> to be <code>null</code> in <code>X-Tyk-UpstreamOAuth</code>.<br> </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6694/files#diff-78828969c0c04cc1a776dfc93a8bad3c499a8c83e6169f83e96d090bed3e7dd0">+23/-7</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information
- Loading branch information