// To use this JavaScript, please access:
// https://wayf.switch.ch/SWITCHaai/WAYF/embedded-wayf.js/snippet.html
// and copy/paste the resulting HTML snippet to an unprotected web page that 
// you want the embedded WAYF to be displayed

// Technical contact for this Resource: chri@zhaw.ch

// Parameters to influence look & feel of WAYF
// ===========================================

// Whether or not the new SAML2/Shibboleth 2 flow shall be used that
// sends the user from the discovery service back to the the Service Provider
// Set this to true if you are using a Shibboleth Service Provider 2.x
// [Optional, default: true]
wayf_use_discovery_service = false;

// EntityID of the Service Provider that protects this Resource
// Examples: "https://econf.switch.ch/shibboleth", "https://dokeos.unige.ch/shibboleth"
// [Mandatory]
wayf_sp_entityID = "https://elearning.zhaw.ch/shibboleth";

// Assertion consumer URL of the Service Provider
// Examples: "https://econf.switch.ch/Shibboleth.sso/SAML/POST", "https://dokeos.unige.ch/Shibboleth.sso/SAML/POST"
// [Mandatory, when wayf_use_discovery_service = false]
wayf_sp_handlerURL = "https://elearning.zhaw.ch/Shibboleth.sso";

// Assertion consumer URL of the Service Provider
// Examples: "https://econf.switch.ch/Shibboleth.sso/DS", "https://dokeos.unige.ch/Shibboleth.sso/DS"
// [Mandatory, when wayf_use_discovery_service = true]
wayf_sp_samlDSURL = "https://elearning.zhaw.ch/Shibboleth.sso/DS";

// URL of the WAYF to use
// Examples: "https://wayf.switch.ch/SWITCHaai/WAYF", "https://wayf-test.switch.ch/aaitest/WAYF";
// [Mandatory]
wayf_URL = "https://wayf.switch.ch/SWITCHaai/WAYF";

// URL on this resource that the user shall be returned to after authentication
// Examples: "https://econf.switch.ch/aai/home", "https://olat.uzh.ch/my/courses"
// [Mandatory]
wayf_return_url = "https://elearning.zhaw.ch/moodle/auth/shibboleth/index.php";

// Default IdP to preselect when central WAYF couldn't guess IdP either
// This is usually the case the first time ever a user accesses a resource
// [Optional, default: commented out]
//wayf_default_idp = "urn:mace:switch.ch:SWITCHaai:ethz.ch";
wayf_default_idp = "urn:mace:switch.ch:SWITCHaai:zhwin.ch";

// Font size
// [Optional, default: 12]
wayf_font_size = 10;

// Font color
// [Optional, default: #000000]
wayf_font_color = '#666666';

// Border color
// [Optional, default: #00247D]
wayf_border_color = '#FAFAFA';

// Background color
// [Optional, default: #F4F7F7]
wayf_background_color = '#FAFAFA';

// Logo size
// [Optional, default: false]
wayf_use_small_logo = true;

// Width of the embedded WAYF in pixels or "auto"
// [Optional, default: 200]
// wayf_width = 220;

// Height of the embedded WAYF in pixels or "auto"
// [Optional, default: "auto"]
wayf_height = "auto";

// Whether to show the checkbox to remember settings for this session
// [optional, default: true]
wayf_show_remember_checkbox = false;

// Whether to automatically log in user if he has a session/permanent redirect
// cookie set at central wayf
// [optional, default: true]
wayf_auto_login = true;

// Whether to hide the WAYF after the user was logged in
// This requires that the _shib_session_* cookie is set when a user 
// could be authenticated
// [optional, default: true]
wayf_hide_after_login = false;

// Whether to hide the WAYF after the user was logged in
// This requires that the _shib_session_* cookie is set when a user 
// could be authenticated
// If you want to hide the embedded WAYF completely, uncomment
// the property and set it to "". This then won't draw anything
// [optional, default commented out: You are already logged in]
//wayf_logged_in_messsage = "";

// Categories of Identity Provider that shall not be shown
// Possible values are: "university","uas","hospital","library","vho","others","all"
// [Optional, default: none]
wayf_hide_categories =  new Array();

// EntityIDs of Identity Provider whose category is hidden but that shall be shown anyway
// Examples: "urn:mace:switch.ch:SWITCHaai:ethz.ch", "https://aai-logon.switch.ch/idp/shibboleth"
// [Optional, default: none]
wayf_unhide_idps = new Array();

// Example of how to unhide certain Identity Providers
// wayf_unhide_idps = new Array("urn:mace:switch.ch:aaitest:dukono.switch.ch");

// EntityIDs of Identity Provider that shall not be shown at all
// Examples: "urn:mace:switch.ch:SWITCHaai:ethz.ch", "https://aai-logon.switch.ch/idp/shibboleth"
// [Optional, default: none]
wayf_hide_idps = new Array();

// Example of how to hide certain Identity Providers
//wayf_hide_idps = new Array("https://aai.example.ch/idp/shibboleth", "urn:mace:switch.ch:aaitest:test-idp.org");


// EntityIDs, Names and SSO URLs of Identity Providers from other federations that shall be added to the drop-down list
// Examples: "urn:mace:switch.ch:SWITCHaai:ethz.ch", "https://aai-logon.switch.ch/idp/shibboleth"
// [Optional, default: none]
wayf_additional_idps = [ ];

// Example of how to add Identity Providers from other federations
// wayf_additional_idps = [ 
//         
//         {name:"ETH Z&uuml;rich",
//         entityID:"urn:mace:switch.ch:SWITCHaai:ethz.ch",
//         SAML1SSOurl:"https://aai-logon.ethz.ch/shibboleth-idp/SSO"},
// 
//         {name:"SWITCH",
//         entityID:"https://aai.switch.ch/idp/shibboleth",
//         SAML1SSOurl:"https://aai-logon.switch.ch/shibboleth-idp/SSO"},
// ];

//-->