Skip to content

Conversation

@waldekmastykarz
Copy link
Collaborator

Fixes validating ApiKey.Parameters in AuthPlugin. Closes #1501

@waldekmastykarz waldekmastykarz requested a review from a team as a code owner January 18, 2026 12:24
Copilot AI review requested due to automatic review settings January 18, 2026 12:24
@waldekmastykarz waldekmastykarz added the pr-bugfix Fixes a bug label Jan 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical logic bug in the AuthPlugin's ApiKey.Parameters validation. The original code had inverted validation logic that would incorrectly error when parameters were provided instead of when they were missing.

Changes:

  • Fixed the validation condition for ApiKey.Parameters from Parameters.Any() to !Parameters.Any() to correctly check for empty collections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: error when using the AuthPlugin: ApiKey.Parameters is required when using ApiKey auth type

1 participant