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

fix: use href attribute in deauthorization link to correctly handle D… #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gildo
Copy link

@gildo gildo commented Apr 27, 2024

Hi,

This PR addresses an issue with de-authorization links. The generated link did not correctly handle the method="delete" attribute, which caused a GET request instead of DELETE.

Ref: Can't get delete links to work in Phoenix 1.7rc.

Thanks for your work.

Best,
Gildo

@gildo gildo force-pushed the gildo/fix-delete-link-method branch from 09815d9 to 0b03683 Compare April 27, 2024 23:42
@arthurbailao
Copy link

Do you think href would work in older versions of Phoenix @gildo? In that case, it should be pretty safe to merge this right?

@gildo
Copy link
Author

gildo commented Jul 14, 2024

Do you think href would work in older versions of Phoenix @gildo? In that case, it should be pretty safe to merge this right?

Hi @arthurbailao, I have made no tests on older versions of Phoenix, and I'm pretty new to the framework, but I guess that href should be backwards compatible. Let's see if the project owners can tell us more.

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