Skip to content

Commit

Permalink
[SecurityBundle] Add provider XML attribute to the authenticators i…
Browse files Browse the repository at this point in the history
…t’s missing from
  • Loading branch information
MatTheCat committed Jun 21, 2024
1 parent 2af1350 commit 86557f2
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions Resources/config/schema/security-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
<xsd:attribute name="check-path" type="xsd:string" />
<xsd:attribute name="use-forward" type="xsd:boolean" />
<xsd:attribute name="require-previous-session" type="xsd:boolean" />
<xsd:attribute name="provider" type="xsd:string" />
</xsd:complexType>

<xsd:attributeGroup name="success-handler-options">
Expand Down
3 changes: 1 addition & 2 deletions Tests/DependencyInjection/Fixtures/xml/container1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@
<http-basic />
</firewall>

<firewall name="with_user_checker" provider="default">
<firewall name="with_user_checker" provider="default" user-checker="app.user_checker">
<http-basic />
<user-checker>app.user_checker</user-checker>
</firewall>

<role id="ROLE_ADMIN">ROLE_USER</role>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<sec:firewalls>
<sec:firewall name="main" provider="with-dash">
<sec:form_login />
<sec:form-login />
</sec:firewall>
</sec:firewalls>
</sec:config>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<sec:firewalls>
<sec:firewall name="main" provider="undefined">
<sec:form_login />
<sec:form-login />
</sec:firewall>
</sec:firewalls>
</sec:config>
Expand Down
3 changes: 1 addition & 2 deletions Tests/DependencyInjection/Fixtures/xml/legacy_container1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@
<http-basic />
</firewall>

<firewall name="with_user_checker" provider="default">
<firewall name="with_user_checker" provider="default" user-checker="app.user_checker">
<anonymous />
<http-basic />
<user-checker>app.user_checker</user-checker>
</firewall>

<role id="ROLE_ADMIN">ROLE_USER</role>
Expand Down
3 changes: 1 addition & 2 deletions Tests/DependencyInjection/Fixtures/xml/legacy_encoders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@
<http-basic />
</firewall>

<firewall name="with_user_checker" provider="default">
<firewall name="with_user_checker" provider="default" user-checker="app.user_checker">
<anonymous />
<http-basic />
<user-checker>app.user_checker</user-checker>
</firewall>

<role id="ROLE_ADMIN">ROLE_USER</role>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<sec:firewalls>
<sec:firewall name="main">
<sec:form_login provider="default" />
<sec:form-login provider="default" />
</sec:firewall>
</sec:firewalls>
</sec:config>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<sec:firewalls>
<sec:firewall name="main">
<sec:form_login provider="undefined" />
<sec:form-login provider="undefined" />
</sec:firewall>
</sec:firewalls>
</sec:config>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<switch-user />
<x509 />
<remote-user />
<user-checker />
<logout />
<remember-me secret="TheSecret"/>
</firewall>
Expand Down

0 comments on commit 86557f2

Please sign in to comment.