Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
en:tech:wayf-sp [2016/11/09 10:14] – [Filter generator] jop@cesnet.cz | en:tech:wayf-sp [2016/11/09 10:32] – jop@cesnet.cz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== eduID.cz WAYF/DS for Service Providers ====== | + | ~~REDIRECT> |
- | + | ||
- | There is also a page with [[:en: | + | |
- | + | ||
- | ===== Defining Identity Providers available for login ===== | + | |
- | + | ||
- | Without any configuration, | + | |
- | + | ||
- | ==== filter ==== | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | < | + | |
- | filter=eyAgImFsbG93SG9zdGVsIjogdHJ1ZSwgImFsbG93SG9zdGVsUmVnIjogZmFsc2V9 | + | |
- | </ | + | |
- | + | ||
- | ==== efilter ==== | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | < | + | |
- | efilter=www.example.com/ | + | |
- | </ | + | |
- | + | ||
- | Content of ''< | + | |
- | + | ||
- | < | + | |
- | eyAgImFsbG93SG9zdGVsIjogdHJ1ZSwgImFsbG93SG9zdGVsUmVnIjogZmFsc2V9 | + | |
- | </ | + | |
- | + | ||
- | //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:// | + | |
- | + | ||
- | === IdPs from federations === | + | |
- | + | ||
- | The " | + | |
- | + | ||
- | === Individual IdPs === | + | |
- | + | ||
- | For better granularity you can limit to particular IdPs. If there is any IdP from that list checked, it has priority over filtering of group IdPs. | + | |
- | + | ||
- | === Access for users out of federations === | + | |
- | + | ||
- | You can use " | + | |
- | + | ||
- | == Examples == | + | |
- | + | ||
- | Filter for using Hostel IdP without possibility to create Hostel IdP account | + | |
- | < | + | |
- | filter=eyAgImFsbG93SG9zdGVsIjogdHJ1ZSwgImFsbG93SG9zdGVsUmVnIjogZmFsc2V9 | + | |
- | </ | + | |
- | + | ||
- | Filter for using Hostel IdP wit possibility to create Hostel IdP account | + | |
- | < | + | |
- | filter=eyAgImFsbG93SG9zdGVsIjogdHJ1ZSwgImFsbG93SG9zdGVsUmVnIjogdHJ1ZX0= | + | |
- | </ | + | |
- | + | ||
- | ===== Logging in setup ===== | + | |
- | + | ||
- | Wayf supports both sites where logging in is required and sites where loging in is optional. | + | |
- | + | ||
- | ==== When logging in is required ==== | + | |
- | + | ||
- | This guide is for the the Shibboleth SP. | + | |
- | + | ||
- | Web page has to covered by mod_shib directive ShibRequire. In file '' | + | |
- | + | ||
- | <code xml> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | If you want to use IdP filtering, write generated filter as a parameter of URL session initiator: | + | |
- | + | ||
- | <code xml> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Or simplified setup of newer SPs: | + | |
- | <code xml> | + | |
- | <SSO discoveryProtocol=" | + | |
- | discoveryURL=" | + | |
- | SAML2 SAML1 | + | |
- | </ | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | That's all. While accessing web page, user is redirected to eduID.cz Discovery Service. | + | |
- | + | ||
- | ==== Logging in on demand (lazy session) ==== | + | |
- | + | ||
- | Session initiator in file '' | + | |
- | + | ||
- | <code html> | + | |
- | < | + | |
- | ... | + | |
- | < | + | |
- | ... | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | In Shibboleth to version 2.4 (included) is URL of the session initiatoru set in attribute '' | + | |
- | + | ||
- | <code html> | + | |
- | <a href="/ | + | |
- | </ | + | |
- | + | ||
- | From shibboleth version 2.5 is URL of the session initiatoru defaultly set to ''/ | + | |
- | + | ||
- | <code html> | + | |
- | <a href="/ | + | |
- | </ | + | |
- | + | ||
- | If you are using SimpleSamlPhP, | + | |
- | + | ||
- | Example of configuration file '' | + | |
- | < | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ), | + | |
- | </ | + | |
- | + | ||
- | example of log in link while using SimpleSamlPhP: | + | |
- | < | + | |
- | <a href="/ | + | |
- | </ | + |