Skip to content

Conversation

oguzkocer
Copy link
Contributor

Summary

Enhances the WpAppNotifier.requested_with_invalid_authentication method to include the request URL, providing better context when authentication failures occur.

Why This Change?

When authentication fails, applications need to know which specific request failed and which site it was targeting. The request URL contains valuable information including:

  • The specific endpoint that failed authentication
  • The site/domain the request was made to
  • Context for debugging authentication issues

This enables applications to provide more informative error messages and better handle authentication failures on a per-site basis.

Breaking Change

This is a breaking change to the WpAppNotifier trait interface. All implementations will need to be updated to accept the new parameter.

Enhance the `requested_with_invalid_authentication` method in the
WpAppNotifier trait to include the request URL, providing better
context for authentication failures.

Changes:
- Update WpAppNotifier trait method to accept request URL parameter
- Modify generated request executor code to capture and pass URL
- Update all Rust implementations across test and CLI modules
- Update Kotlin EmptyAppNotifier implementation
- Update Swift EmptyAppNotifier and MockAppNotifier implementations
- Add NetworkRequestAccessor trait import to generated code
@oguzkocer oguzkocer added this to the 0.2 milestone Sep 4, 2025
@oguzkocer oguzkocer marked this pull request as ready for review September 4, 2025 18:01
@oguzkocer oguzkocer enabled auto-merge (squash) September 4, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant