Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make signature generation more flexible by allowing relative URLs #142

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

MichaelBrauner
Copy link

@MichaelBrauner MichaelBrauner commented May 5, 2023

Here is the PR regarding this issue: #136

In the current implementation, the UriSigner always generates an absolute URL when signing. However, this might not be the desired behavior in some cases.

This PR adds a configuration option (use_relative_path) to allow the use of relative URLs when generating signatures. By default, the option is set to false, which maintains the existing behavior of generating absolute URLs.

@MichaelBrauner MichaelBrauner changed the title Email signature verification without domain Make signature generation more flexible by allowing relative URLs May 5, 2023
@eidenschink
Copy link

This configuration option would be great. I have a use case where I want to target to a completely different host running on another framework; the hosts endpoint then proxies the request (or rather re-creates it) to the Symfony Controller.
If only the relative path is signed I can simply make the necessary hostname change in the TWIG template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants