Skip to content
Leif Johansson edited this page Dec 3, 2017 · 18 revisions

There are 3 ways to integrate with the discovery service in pyFF:

  1. Use the SAML identity provider discovery protocol.
  2. Use the jquery discovery widget and provide your own HTML
  3. Use the discovery service client and provide both your own HTML and javascript

jquery discovery widget

Sample HTML:

<div id="ds"
     data-href="sp entity id"
     data-mdq="mdq server base URL"
     data-store="pyff instance /storage URL"
     data-search="pyff instance search URL"
     data-list="an optional URL returning a list"
     data-related="a hint domain"
     data-inputfieldselector="#searchinput">
     <div class="form-group">
        <div class="input-group">
           <input id="searchinput" class="form-control" type="search"/>
        </div>
     </div>
</div>

and then use this javascript

$(document).ready(function() {
   $("#ds").discovery_client();
});
Clone this wiki locally