Introduce version filtering for pre-issue access token action(v2) and extend OAuth grant type support#7658
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7658 +/- ##
============================================
- Coverage 49.84% 49.37% -0.48%
- Complexity 19869 20461 +592
============================================
Files 2144 2147 +3
Lines 132858 148824 +15966
Branches 27664 32971 +5307
============================================
+ Hits 66228 73476 +7248
- Misses 58214 66074 +7860
- Partials 8416 9274 +858
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…or pre-issue access token
|



This pull request introduces version-aware filtering for action execution requests and updates configuration and test resources to support new OAuth grant types and action versioning. The main changes enhance backward compatibility for action types and ensure the system recognizes newer action versions and additional grant flows.
Version-aware filtering and backward compatibility:
actionVersionas a parameter toRequestFilter.getFilteredHeadersandgetFilteredParamsmethods, allowing filtering logic to distinguish between v1 and v2 (or later) actions forPRE_ISSUE_ACCESS_TOKEN. This preserves backward compatibility for v1 actions while enforcing stricter rules for v2 and above.isV2OrLaterinRequestFilter.javato determine action version and apply appropriate filtering logic.Configuration updates:
pre_issue_access_tokenactions tov2, reflecting the new versioning logic.token exchange,device code,jwt bearer,saml2 bearer,organization switch) in both test (rulemeta/flows.json) and server feature resources, ensuring the system can recognize and handle these flows.