Skip to content
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

Removed option firewall_names #1864

Merged
merged 1 commit into from
Dec 27, 2021
Merged

Removed option firewall_names #1864

merged 1 commit into from
Dec 27, 2021

Conversation

gassan
Copy link
Contributor

@gassan gassan commented Dec 23, 2021

Firewall names are collected automatically.

  1. if firewall has defined oauth authenticator/provider, then firewallName is stored in HWIOAuthExtension property.
  2. Firewall names are required by 2 objects - ResourceOwnerMapLocator and OAuthUtils
  3. In the exists CompilerPass firewall names are passed to objects from (2).

@@ -156,8 +156,8 @@ public function getConfigTreeBuilder()
->fixXmlConfig('firewall_name')
->children()
->arrayNode('firewall_names')
->isRequired()
->requiresAtLeastOneElement()
->setDeprecated('hwi/oauth-bundle', '2.0', '"%path%.%node%" is deprecated. Firewall names are collected automatically.')
Copy link
Member

Choose a reason for hiding this comment

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

Well, as 2.0 is not yet final we could deprecate this in 1.x (1.5?) and remove it in 2.0

Copy link
Contributor Author

@gassan gassan Dec 23, 2021

Choose a reason for hiding this comment

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

I thought this commits are for 2.0 only. Is version 1.5 also planned?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if required I can prepare commits for 1.x-dev too.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't want to have any 1.5, I can leave with this deprecation in 2.0 :)

Copy link
Collaborator

@stloyd stloyd left a comment

Choose a reason for hiding this comment

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

Good idea, but IMHO a bit "broken"

@gassan
Copy link
Contributor Author

gassan commented Dec 24, 2021

Added SameKeyValueSet Structure for passing to firewall authenticator factory. but I'm not sure about right place for this data structure
Firewall names are stored as keys in \ArrayIterator.

@gassan gassan force-pushed the no-firewall-names branch 5 times, most recently from 0e69571 to 7809b43 Compare December 26, 2021 07:31
@stloyd stloyd requested a review from XWB December 26, 2021 11:57
@stloyd stloyd merged commit ee33e6d into hwi:master Dec 27, 2021
@stloyd
Copy link
Collaborator

stloyd commented Dec 27, 2021

Nice job @gassan 🎉

@gassan gassan deleted the no-firewall-names branch December 27, 2021 09:02
gassan added a commit to gassan/HWIOAuthBundle that referenced this pull request Jan 23, 2022
gassan added a commit to gassan/HWIOAuthBundle that referenced this pull request Jan 23, 2022
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.

3 participants