Merged
Conversation
Member
|
Thanks for the PR. Could you please update the changelog, and squash your commits down to one? |
Author
|
@ghiculescu Added the CHANGELOG, just tried to squash into a single commit and now I've got 5 commits total :S. I don't think I've had to squash within the same branch before, only at the point of merging a PR from one branch to another. |
de7438d to
3ad0252
Compare
Author
|
Scratch that, I've sorted it :) |
byroot
approved these changes
Dec 22, 2022
Member
byroot
left a comment
There was a problem hiding this comment.
LGTM. Can you rebase to fix the conflict and let me know?
Per-request cookie domain set through proc
3ad0252 to
83da2e9
Compare
Author
|
Sorry @byroot busy day. Rebased now :) |
Member
|
No worries, there was no rush. Thanks for the PR! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation / Background
We've recently been looking at authentication across multiple applications where a multi-tenanted application needs to set a specific cookie domain e.g .tenant1.company.name for the application. Since this needs to work across multiple applications whether it be auth.tenant1.company.name, jam.tenant1.company.name we need just a little more flexibility and the :tld_length option won't cut it. Hence using a proc to set the cookie domain.
This pull request allows option[:domain] to be a proc
Detail
This is a small change to actionpack/lib/action_dispatch/middleware/cookies.rb, coping with that additional option.
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]