WAYF/DS for Service Providers

See also a page with general information about eduID.cz WAYF/DS.

Identity Providers Available for Login

Without any configuration, WAYF shows all the IdPs available in the federation the SP belongs to. It is possible to define a list of IdPs to be shown making use of one of the two parameters – either filter attribute or efilter attribute.


Using filter attribute leads to a direct filter. In this case the list of IdPs to show is defined as a value in filter parameter.

Example of a direct filter:



Using efilter attribute leads to an external filter. In this case the list of IdPs to show is defined in a file at a URL linked in efilter parameter.

Example of an external filter:


Content of www.example.com/filter:


efilter approach is a solution for HTTP servers limiting HTTP GET parameters such as Suhosin extension for PHP language allowing only 255 characters at a maximum.

Filter generator

A filter generator is available at https://ds.eduid.cz/filter.php.

All IdPs in a federation

In order for WAYF to display all the IdPs in a particular federation, just select the appropriate checkbox next to the corresponding federation name. It is possible to choose more federations at once.

Filtering by entity categories

List of IdPs can be filtered by entity categories. Move entity category from gray box into green one or red one. Green box is positive filter. IdPs in list must have all entity categories from green box and mustn't have any entity category from red box.

Individual IdPs

You can create whitelist or blacklist of IdPs per federation. It is even possible to have this whitelist or blacklist for onlz some selected federations.

Access for users not participating in a federation

For users from organizations not participating in any federation a “Hostel” Identity Provider is available. Clicking “Use Hostel IdP” enables this Identity Provider where any user might create an account for free. If the Service Provider is not configured to accept Hostel, logging in using Hostel IdP is not available. Clicking “Allow Hostel registration” enables users to create an account at Hostel IdP first.


Example of a direct filter with Hostel IdP enabled (without account registration):


Example of a direct filter with Hostel IdP enabled (with account registration):



WAYF supports sites where login is required as well as sites where login is optional (= lazy sessions).

The following examples require either Shibboleth SP 2.5+ or SimpleSAMLphp 1.14+.

Login Required

In the following configuration example, a user is redirected to WAYF prior displaying the accessed web page in order to select home organization and login.

Alter <SSO> element in shibboleth2.xml configuration file accordingly.


Login Optional (Lazy Sessions)

First, the <SSO> element in shibboleth2.xml configuration file has to be set as in previous section.

Second, the following <script> element has to be inserted in to the page <head> element where lazy sessions are desired.

    <!-- another HTML elements -->
    <script type="text/javascript" src="https://ds.eduid.cz/ds.js"></script>
    <!-- another HTML elements -->

The session initiator URL is set to /Shibboleth.sso/Login by default, so the login link in a web page might look like the following code:

    <a href="/Shibboleth.sso/Login" onclick="startOverlay(event)">Log in</a>

For SimpleSAMLphp, WAYF configuration is set in authsources.php configuration file.

Example of configuration file authsources.php:

'default-sp' => array(
    'entityID' => 'https://sp.example.com/simplesaml/',
    'idp' => NULL,
    'discoURL' => 'https://ds.eduid.cz/wayf.php',
    'privatekey' => 'example.key'

And the login link in the web page might look like the following.

    <a href="/simplesaml/module.php/core/authenticate.php" onclick="startOverlay(event)">Log in</a>

Return parameter check

For security reasons, WAYF checks the value of the return parameter. It is the URL to which the user's browser is redirected after selecting IdP. The parameter value must match the metadata value for that SP. If different, the WAYF displays an error message and does not allow the user to continue logging on.

Last modified:: 2020/05/31 21:02