diff --git a/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php b/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php
index 82f8d8d41275a91f38ec2912154a7ac08ee74ef2..79d55ed33122ce65c3dac3b4e5b4901435d9fe2f 100644
--- a/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php
+++ b/info.textgrid.middleware.tgauth.webauth/WebAuthN/TextGrid-WebAuth-displaySID.php
@@ -1,7 +1,7 @@
 <?php
 
 //phpinfo();
-$ePPNplusSID = $_GET["ePPNplusSID"];
+$ePPNplusSID = $_POST["ePPNplusSID"];
 
 echo "<HTML><HEAD>\n";
 echo "<meta name=\"ePPNplusSID\" content=\"". $ePPNplusSID ."\"/>\n";
diff --git a/info.textgrid.middleware.tgauth.webauth/secure/TextGrid-WebAuth.php b/info.textgrid.middleware.tgauth.webauth/secure/TextGrid-WebAuth.php
index e71429acdfb4e722e0188c05ef32f127798063f6..64b7a01b7c3ee6b903caadcee9bdfca38410ac01 100644
--- a/info.textgrid.middleware.tgauth.webauth/secure/TextGrid-WebAuth.php
+++ b/info.textgrid.middleware.tgauth.webauth/secure/TextGrid-WebAuth.php
@@ -439,7 +439,7 @@ function showCertificateInfoButton () {
 }
 
 function showCertificateButtons () {
-    global $slcPortalDelegationURL, $slcNoDelegationURL, $remote_user, $newSid;
+    global $slcPortalDelegationURL, $slcNoDelegationURL, $remote_user, $newSid, $rbacbase;
   
     echo "<form method=\"get\" action=\"${slcPortalDelegationURL}\">\n";
     echo "<input type=\"hidden\" name=\"ePPNplusSID\" value=\"" . $remote_user . "|" .$newSid . "\">\n";