Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Make sure WAYF visibility is reflected correctly #15

Merged
merged 1 commit into from
Jul 25, 2017

Conversation

MKodde
Copy link
Contributor

@MKodde MKodde commented Jul 19, 2017

When the Show unconnected IdP's in WAYF flag is enabled the unconnected
should be displayed in the WAYF and not be filtered. In this commit the
findIdentityProviders method for the DoctrineMetadataRepository makes
sure it's results are visited by the Visitor implementation for IdPs.

Main question is: does this change break other behaviour for the other methods that call and use this method. My gut feel tells me this change would only affect parts of the application that use the IdentityProvider::$isEnabledInWayf property, so this change is quite safe..

When the Show unconnected IdP's in WAYF flag is enabled the unconnected
should be displayed in the WAYF and not be filtered. In this commit the
`findIdentityProviders` method for the DoctrineMetadataRepository makes
sure it's results are visited by the Visitor implementation for IdPs.
@MKodde MKodde requested a review from thijskh July 19, 2017 14:26
@MKodde MKodde changed the title [WIP] Make sure WAYF visibility is reflected correctly Make sure WAYF visibility is reflected correctly Jul 20, 2017
Copy link
Member

@thijskh thijskh left a comment

Choose a reason for hiding this comment

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

It reeks a bit of code duplication that this change is necessary. It might be that OpenConext/OpenConext-engineblock#410 will eventually address that.

@thijskh
Copy link
Member

thijskh commented Jul 20, 2017

Although the change itself looks good, I am wondering about it solving the problem. In the EB source code I see findIdentityProviders() not used in a relevant code path? Or is it?

@MKodde
Copy link
Contributor Author

MKodde commented Jul 20, 2017

The CompositeMetadatRepository calls the findIdentityProviders method on the DoctrineMetadataRepository. EB calls this method indirectly from this method: EngineBlock_Corto_Module_Service_SingleSignOn::_transformIdpsForWayf.

@MKodde MKodde merged commit d0b47aa into master Jul 25, 2017
@MKodde MKodde deleted the feature/unconnected-idps-in-wayf branch July 25, 2017 06:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants