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 645279036d first commit 2012-07-11 15:06:24 +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 first commit 2012-07-11 15:06:24 +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 first commit 2012-07-11 15:06:24 +02:00
store.html first commit 2012-07-11 15:06:24 +02:00
test.html first commit 2012-07-11 15:06:24 +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");