This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Benjamin Dauvergne cea9d392f6 add a possibily for a local web-service to forbid the request 2012-07-13 13:12:07 +02:00
doc first commit 2012-07-11 15:06:24 +02:00
README.txt first commit 2012-07-11 15:06:24 +02:00
debug.js first commit 2012-07-11 15:06:24 +02:00
discoquery.js add a store parameter to response.html and to callbacks, in order to notify which store responded when launching many requests 2012-07-11 16:42:09 +02:00
jquery-1.7.2.min.js first commit 2012-07-11 15:06:24 +02:00
jquery.cookie-1.1.js first commit 2012-07-11 15:06:24 +02:00
jquery.qs.js first commit 2012-07-11 15:06:24 +02:00
response.html add a store parameter to response.html and to callbacks, in order to notify which store responded when launching many requests 2012-07-11 16:42:09 +02:00
store.html add a possibily for a local web-service to forbid the request 2012-07-13 13:12:07 +02:00
test.html add a store parameter to response.html and to callbacks, in order to notify which store responded when launching many requests 2012-07-11 16:42:09 +02:00

README.txt

Simple IdP Discovery Store and Query
====================================

How to use
----------

Copy this code in your web app.

Place the response.html somewhere, let's say at http://sp.example.com/response.html.

Add this:

  <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="jquery.qs.js"></script>
  <script type="text/javascript" src="discoquery.js"></script>
  <script type="text/javascript" src="debug.js"></script>

And make the linked files accessible.

Call this to get the globally stored preference:

  $.disco_query("http://sp.example.com/metadata", "http://disco.example.com/store", "http://sp.example.com/response.html", function (entity_id, auth) {
   // do something with it
 });

Call this to store your preference:

  $.disco_query("http://sp.example.com/metadata", "http://chosen_idp.example.com/metadata", "http://disco.example.com/store", "http://sp.example.com/response.html");