Skip to content

Commit

Permalink
testing javascript cookie set for eduroam
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Apr 12, 2022
1 parent 6ad4867 commit 7f9b716
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion assets/dsroot/custom-body.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
<?php // Copyright (c) 2016, SWITCH
// CAF 2016 ?>

<script>
function setCirrusIDP() {
document.cookie = "_icmpwayf_saml_idp=aHR0cHM6Ly9pbnRlcm5ldDIuaWRwLmNpcnJ1c2lkZW50aXR5LmNvbS9pZHA";
document.cookie = "_icmpwayf_redirection_state=checked";
window.location.assign("https://login.at.internet2.edu/Saml2/disco?entityID=https%3A%2F%2Finternet2.idp.cirrusidentity.com%2Fidp");
}

function setGoogleIDP() {
document.cookie = "_icmpwayf_saml_idp=aHR0cHM6Ly9pbnRlcm5ldDIuaWRwLmNpcnJ1c2lkZW50aXR5LmNvbS9pZHA";
document.cookie = "_icmpwayf_redirection_state=checked";
window.location.assign("https://login.at.internet2.edu/Saml2/disco?entityID=https%3A%2F%2Finternet2.idp.cirrusidentity.com%2Fidp");
}


</script>



</script>


<!-- Identity Provider Selection: Start -->
<br /><?php echo getLocalString('header'); ?> <br /><br />

<strong> Working Links </strong>
<div style="text-align:left;font-size:14px">
If you do not find your organization in this list, there are two options:<br />
<ol>
Expand All @@ -13,6 +34,20 @@
(see <a href='https://spaces.at.internet2.edu/x/HpcbDQ'>Guest Account Guide</a>).<br /></li>
</ol>
</div>
<hr/>
<strong>Testing Links</strong>
<div style="text-align:left;font-size:14px">
If you do not find your organization in this list, there are two options:<br />
<ol>
<li>You can <a href="#" onclick="setGoogleIDP();return false;">login with your Google account</a>.<br /></li>
<li>You can <a href="#" onclick="setCirrusIDP();return false;">login with your Internet2 Guest account</a>.
If you are new, you may <a href='https://apps.cirrusidentity.com/cirrusid/internet2.edu/register/index?returnUrl=https%3A%2F%2Fcomanage.at.internet2.edu%2Fregistry%2Fpages%2Fpublic%2Fclosetab' target='_blank'>create an Internet2 Guest account</a>
(see <a href='https://spaces.at.internet2.edu/x/HpcbDQ'>Guest Account Guide</a>).<br /></li>
</ol>
</div>



<br />

<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
Expand Down

0 comments on commit 7f9b716

Please sign in to comment.