Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] Moved Simple{Form,Pre}AuthenticatorInterfaces to Security\Http #15131

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

Closed
wants to merge 2 commits into from

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Jun 28, 2015

Description

The SimpleFormAuthenticatorInterface and SimplePreAuthenticatorInterface rely on Request, which means it's a Http land class. This means they don't belong in core.

Having a form login that doesn't depend on the request is an option as well (e.g. a console application might use the question helper to implement a "form" login). However, then there is a need for a new abstraction of the request. I don't think it's worth it.

Furthermore, the only classes typehinting/relying on this interfaces can be found in Security\Http.

Implementation

The new interfaces extend the old ones for better backwards compability. Symfony doesn't trigger deprecation errors for interfaces, see 6f57b7b

PR Info Table

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

@wouterj wouterj changed the title [Security] Moved SimpleFormAuthenticatorInterface to Security\Http [Security] Moved Simple{Form,Pre}AuthenticatorInterfaces to Security\Http Jun 29, 2015
@wouterj
Copy link
Member Author

wouterj commented Jun 29, 2015

Discovered the same applies to SimplePreAuthenticatorInterface, updated the PR accordingly.

@fabpot
Copy link
Member

fabpot commented Jul 16, 2015

👍

@wouterj wouterj force-pushed the security_move_simple_form branch from 531ef15 to 64a159c Compare July 22, 2015 09:05
@wouterj
Copy link
Member Author

wouterj commented Jul 22, 2015

Rebased and ready to merge imo

@fabpot
Copy link
Member

fabpot commented Jul 22, 2015

Thank you @wouterj.

@fabpot fabpot closed this in 86b218e Jul 22, 2015
@wouterj wouterj deleted the security_move_simple_form branch July 22, 2015 13:34
@fabpot fabpot mentioned this pull request Nov 16, 2015
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Nov 30, 2015
This PR was merged into the 2.8 branch.

Discussion
----------

[2.8] Document some Security changes

| Q | A
| --- | ---
| Doc fix? | no
| New docs? | yes (symfony/symfony#15131, symfony/symfony#16493, symfony/symfony#15151
| Applies to | 2.8+
| Fixed tickets | -

Commits
-------

0526ca0 Document deprecation of supports{Attribute,Class}() methods
22026ee Document Security key to secret renamings
4036d26 Use new Simple{Form,Pre}AuthenticatorInterface namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants