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] fixed pre/post authentication checks#9902

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:2.3fromfabpot:security-checks
Dec 31, 2013

Conversation

@fabpot
Copy link
Member

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#8510,#9622
LicenseMIT
Doc PRN/A

After further investigation of#8510, I found that all checks in thecheckPreAuth actually belongs tocheckPostAuth and the same goes for checks inCheckPostAuth (I checked the original source from Spring and indeed, that's how it is implemented there: seehttps://github.com/spring-projects/spring-security/blob/master/core/src/main/java/org/springframework/security/authentication/dao/AbstractUserDetailsAuthenticationProvider.java#L305
).

So, this PR fixes that issue. I think that we can do this change safely in 2.3 as the error message is the same for all causes by default ($hideUserNotFoundExceptions istrue by default inUserAuthenticationProvider).

The only "real" change is whether the authentication is checked or not.

fabpot added a commit that referenced this pull requestDec 31, 2013
This PR was merged into the 2.3 branch.Discussion----------[Security] fixed pre/post authentication checks| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#8510,#9622| License       | MIT| Doc PR        | N/AAfter further investigation of#8510, I found that all checks in the `checkPreAuth` actually belongs to `checkPostAuth` and the same goes for checks in `CheckPostAuth` (I checked the original source from Spring and indeed, that's how it is implemented there: seehttps://github.com/spring-projects/spring-security/blob/master/core/src/main/java/org/springframework/security/authentication/dao/AbstractUserDetailsAuthenticationProvider.java#L305).So, this PR fixes that issue. I think that we can do this change safely in 2.3 as the error message is the same for all causes by default (`$hideUserNotFoundExceptions` is `true` by default in `UserAuthenticationProvider`).The only "real" change is whether the authentication is checked or not.Commits-------ada82a2 [Security] fixed pre/post authentication checks
@fabpotfabpot merged commitada82a2 intosymfony:2.3Dec 31, 2013
@fabpotfabpot deleted the security-checks branchFebruary 3, 2014 07:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp