This a piece of working code for your DiscoJuice 3.0 (Central Discovery Service version) with Shibboleth SPs:
============== /etc/apache2/sites-enable/default-ssl
==============
=========================================================
================ /var/www/DS/index.html ======================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Select your login provider –
DiscoJuice</title>
<script type="text/javascript"
src="//
ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" language="javascript"
src="//
cdn.discojuice.org/engine/discojuice-stable.min.js"></script>
<script type="text/javascript" language="javascript"
src="//
cdn.discojuice.org/engine/idpdiscovery.js"></script>
<link rel="stylesheet" type="text/css"
href="//
cdn.discojuice.org/css/discojuice.css" />
<style type="text/css">
body {
text-align: center;
}
div.discojuice {
text-align: left;
position: relative;
width: 600px;
margin-right: auto;
margin-left: auto;
}
</style>
<script type="text/javascript">
$("document").ready(function() {
$.getJSON('/data/acl.json', function(acl) {
var options = {
"title": "Select your provider",
"feeds":
["edugain","garr-test"]
};
var djc = DiscoJuice.Hosted.getConfig(options);
djc.always = true;
djc.callback = IdPDiscovery.setup(djc, acl);
$("body").DiscoJuice(djc);
});
});
</script>
</head>
<body style="background: #e8e8e8">
</body>
</html>
=====================================================
================ /var/www/DS/data/acl.json ================
[ "
sp1.example.org" , "
ssp-sp2.example.org" , "
sp3.example.org"
]
=====================================================
And, into the shibboleth2.xml on the SPs (sp1, sp3), we add
this (if it is not exists):
<!-- An example supporting the new-style of discovery
service. -->
<SessionInitiator type="Chaining" Location="
/DS"
id="DS" relayState="cookie"
isDefault="true">
<SessionInitiator type="SAML2" acsIndex="1"
template="bindingTemplate.html"/>
<SessionInitiator type="Shib1" acsIndex="5"/>
<SessionInitiator type="SAMLDS" URL="
https://cds.example.org/DS"/>
</SessionInitiator>
Notice the "
DS" and the
isDefault="true"
keywords.
or, for simpleSAMLphp SP (ssp-sp2):
=================== /var/simplesamlphp/config/authsources.php ============================
....
=================================================================================
I hope this can help other people to use Discojuice 3.0.
Best Regards,
Marco