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

Add feature flag to disable IdP-initiated authentication flow #1313

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

tvdijen
Copy link
Contributor

@tvdijen tvdijen commented Aug 26, 2024

Closes #1312

@tvdijen tvdijen requested review from MKodde and thijskh August 26, 2024 16:56
@tvdijen
Copy link
Contributor Author

tvdijen commented Aug 26, 2024

I suspect that 'under the hood' the acceptance test is failing because the new feature flag is missing from the test-configuration, but I have no clue where to look for that..

@MKodde MKodde force-pushed the feature/configurable-idp-initiated branch from a890b21 to d19a56a Compare August 27, 2024 06:10
1. The TestFeatureConfiguration missed the default setting. Causing some
   of the behat tests to fail (the ones running the check in the
   controller)
2. I added a dedicated test that tests if the flag can disable the
   unsolicited sso flow

See: OpenConext#1312
@MKodde MKodde force-pushed the feature/configurable-idp-initiated branch from d19a56a to 2de1a17 Compare August 27, 2024 06:55
@MKodde
Copy link
Member

MKodde commented Aug 27, 2024

Sweet 'n simple solution @tvdijen 👌

To fix the tests, you missed the addition of the feature flag to the test feature flag service. While fixing your tests, I took the opportunity to also add a Behat test. That required me to inject the FunctionalTesting feature flag service on the IdP controller in test. If you check my code, I'll approve yours.

@MKodde MKodde merged commit 2b23072 into OpenConext:main Aug 27, 2024
2 checks passed
@tvdijen tvdijen deleted the feature/configurable-idp-initiated branch August 27, 2024 10:24
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.

Feature request: Add feature flag to disable the IdP-initiated flow
3 participants