By default DSX Discovery Service lists all eduGAIN IdPs for user to select from, which is a list of several thousand IdPs. Showing all IdPs often is not desirable. The DSX Discovery Service allows to filter out IdPs so that only the relevant IdPs are shown in the list. This allows an SP admin to create a list (or several lists) specifically targeting the user base of his SP. If for nothing else, the filtering should be used to hide IdPs not meant to be shown for 'normal' end user i.e. IdPs having entity category http://refeds.org/category/hide-from-discovery.
Creating the filter using the DSX DS Filter Generator
The filter is generated using DSX Filter Generator.
Click open the 'select individual IdPs' - accordion. You should now see all the possible IdPs to select from.
Make sure that the radio - button 'Selected IdPs will be visible' is checked. Select the entities you want the user to pick the IdP from.
At the bottom of the page you should see the resulting filter and its plaintext version. Note that by picking individual IdPs you will easily end up with a large filter and you need to set it by reference.
Outcome
Show only IdPs https://idp.aalto.fi/idp/shibboleth,https://birk.wayf.dk/birk.php/wayf.au.dk and https://shibboleth.aber.ac.uk/shibboleth-TST.
Merging Two Filter Types
When both entity categories and IdP list filters are used together, the list shown comprises of IdPs not filtered out by categories filter with possible additions of IdP allow list or possible deductions of IdP deny list. The assumption is that SP creates the base of the rules using categories filtering and then possible exceptions to those rules by Allow/Deny lists of IdPs.
This example shows how to list all IdPs tagged with Research and Scholarship entity category and a specific set of IdPs.
Click open the 'select individual IdPs' - accordion. You should now see all the possible IdPs to select from.
Make sure that the radio - button 'Selected IdPs will be visible' is checked. Select the "Aalto" entity (not belonging to mentioned categories at the time of the writing).
At the bottom of the page you should see the resulting filter and it's plaintext version.
The filter generated with the tool is appended as an HTTP GET parameter to the discovery request. It can be set either by value or by reference. The maximum length for discovery request query parameters by some browsers is 512 bytes. If the filter is exceeding this value one should the filter by reference.