Skip to content
Snippets Groups Projects
Commit 6c2a2029 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

prepare for hosted at discojuice.org

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2929 44740490-163a-0410-bde0-09ae8108e29a
parent 9323808c
No related branches found
No related tags found
No related merge requests found
/*
* DiscoJuice
* Author: Andreas Åkre Solberg, UNINETT, andreas.solberg@uninett.no
* Licence undecided.
*/
if (typeof DiscoJuice == "undefined") var DiscoJuice = {};
DiscoJuice.Hosted = {
"setup": function (target, title, spentityid, responseurl, feeds, redirectURL) {
var options, i;
options = {
"title": "Sign in to <strong>" + title + "</strong>",
"subtitle": "Select your Provider",
"disco": {
"spentityid": spentityid,
"url": responseurl,
"stores": ["https://store.discojuice.org/"],
"writableStore": "https://store.discojuice.org/"
},
"cookie": true,
"country": true,
"location": true,
"countryAPI": "https://store.discojuice.org/country",
"discoPath": "https://static.discojuice.org/",
"callback": function (e, djc) {
var returnto = window.location.href;
window.location = redirectURL + escape(e.entityID);
},
"metadata": []
};
for(i = 0; i < feeds.length; i++) {
options.metadata.push("https://static.discojuice.org/feeds/" + feeds[i]);
}
$(document).ready(function() {
$(target).DiscoJuice(options);
console.log("SETUP completed");
console.log(options);
});
}
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment