Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change was necessary because, in our case, we have a website that needs to respond to different urls, and currently, the plugin breaks because it assumes a fixed base url.
This causes issues during the OAuth signature verification, where the generated signature doesn't match, resulting in the "OAuth signature does not match" error.
To address this, we've introduced a new hook that allows us to intercept and modify the base url before the signature is generated. This change provides flexibility for anyone facing similar issues, giving them the opportunity to adjust the base url dynamically to match their specific setup.
For example, with this hook, one could implement the following function:
This approach allows us to ensure that the base URL matches what is expected, preventing the signature mismatch and ensuring the OAuth process works correctly.