Skip to content

Fix constructor AbstractPreAuthenticatedListener #74

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 1 commit into from

Conversation

klaasn
Copy link

@klaasn klaasn commented Feb 22, 2011

AbstractPreAuthenticatedListener is only used in X509AuthenticationListener but there the constructor is overwritten.

It is a different from the constructor in
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php

This change gives the two listeners the same footprint.

…ractAuthenticationListener and make it compatible with caller in PreAuthenticatedAuthenticationProvider
@schmittjoh
Copy link
Contributor

Pre-authentication is fundamentally different from regular authentication. What is the benefit of this?

@klaasn
Copy link
Author

klaasn commented Feb 22, 2011

it allows me to define the service easily

CookieSecurityBundle\Security\CookieFactory

and

class CookieProvider extends PreAuthenticatedAuthenticationProvider {}

@klaasn
Copy link
Author

klaasn commented Feb 22, 2011

sorry, that made little sense. I meant to say that the service definition of the listener becomes the same for both.

<service id="security.authentication.cookie.provider" 
     class="CookieSecurityBundle\Security\CookieProvider" 
     public="false">
  <argument type="service" id="cookieuserprovider"/>
  <argument type="service" id="security.account_checker" />
  <argument /> <!-- Provider-shared Key -->
  <argument type="service" id="security.encoder_factory" />
</service>

@schmittjoh
Copy link
Contributor

I still don't see why we need this, I'll close this pull request.

SofHad pushed a commit to SofHad/symfony that referenced this pull request Oct 12, 2015
…bw, javiereguiluz)

This PR was merged into the master branch.

Discussion
----------

Add check.php file for access from web

This PR takes the work made by @bocharsky-bw in symfony#74 and applies the look-and-feel of the Symfony Demo application to better integrate it.

### No errors - Before

![before_ok](https://cloud.githubusercontent.com/assets/73419/8523007/1b62e224-23f3-11e5-9efc-3ba6bd874545.png)

### No errors - After

![after-ok](https://cloud.githubusercontent.com/assets/73419/8522991/147879d8-23f3-11e5-8158-006744863e24.png)

### Errors - Before

![before-ko](https://cloud.githubusercontent.com/assets/73419/8523014/22518c66-23f3-11e5-9059-c4ad9941617b.png)

### Errors - After

![after-ko](https://cloud.githubusercontent.com/assets/73419/8523017/2a22993a-23f3-11e5-89d0-18c2ced9ddc4.png)

Commits
-------

d88ef7b Added a note about in the README about the new requirements checked
6972191 Minor change to allow sub-directory installation
2295159 Add check.php file for access from web
2128178 Add check.php file for access from web
jderusse pushed a commit to jderusse/symfony that referenced this pull request Mar 30, 2020
chalasr pushed a commit to chalasr/symfony that referenced this pull request Sep 24, 2020
* Downgrade PHP requirements to PHP 7.1

* Updated appveyor configuration

* Addressed comments
This pull request was closed.
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