Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Fix clearing remember-me cookie after deauthentication#34671

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.4fromchalasr:rememberme-logout
Nov 30, 2019

Conversation

@chalasr
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#26379
LicenseMIT
Doc PR-

If you are using theremember_me listener and the refreshed user is deauthenticated, you are still logged in because the remember-me cookie does not get cleared.
This fixes it.

@chalasrchalasrforce-pushed therememberme-logout branch 4 times, most recently from18ca151 to1f57f19CompareNovember 29, 2019 22:30
@chalasrchalasrforce-pushed therememberme-logout branch 4 times, most recently fromfb29008 to1ab423fCompareNovember 30, 2019 01:36
@fabpot
Copy link
Member

Thank you@chalasr.

fabpot added a commit that referenced this pull requestNov 30, 2019
…ication (chalasr)This PR was merged into the 3.4 branch.Discussion----------[Security] Fix clearing remember-me cookie after deauthentication| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |Fix#26379| License       | MIT| Doc PR        | -If you are using the `remember_me` listener and the refreshed user is deauthenticated, you are still logged in because the remember-me cookie does not get cleared.This fixes it.Commits-------d625a73 [Security] Fix clearing remember-me cookie after deauthentication
@fabpotfabpot merged commitd625a73 intosymfony:3.4Nov 30, 2019
@chalasrchalasr deleted the rememberme-logout branchNovember 30, 2019 13:22
thrownewInvalidConfigurationException(sprintf('Invalid firewall "%s": user provider "%s" not found.',$id,$firewall[$key]['provider']));
}
$userProvider =$providerIds[$normalizedName];
}elseif ('remember_me' ===$key) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Careful when merging up: this condition also includesanonymous === $key as of 4.4, it needs to be split so that this applies only to remember_me.

always_remember_me:true
secret:key
anonymous:~
logout_on_user_change:true
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

to be removed starting from 4.3

@fabpotfabpot mentioned this pull requestDec 1, 2019
This was referencedDec 1, 2019
@gondo
Copy link

gondo commentedDec 2, 2019
edited
Loading

this broke my application. can't login anymore, I am being redirected to login page even with correct credentials. downgrading to SF3.4.35 (from3.4.36) fixed the problem.
SF Profile doesn't show any error msg, dev log file is empty.

@chalasr
Copy link
MemberAuthor

@gondo please open an issue with enough information to reproduce

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@chalasr@fabpot@gondo@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp