SF Feature #2073323 - Using Single Sign On authentication

This commit is contained in:
Deon George
2009-07-12 12:01:59 +10:00
parent ed4784b1b6
commit 57d405fe3b
4 changed files with 167 additions and 21 deletions

View File

@@ -128,6 +128,10 @@ class HTMLTree extends Tree {
$this->draw_login_link();
break;
case 'config':
case 'proxy':
break;
default:
die(sprintf('Error: %s hasnt been configured for auth_type %s',__METHOD__,$server->getAuthType()));
}
@@ -294,7 +298,7 @@ class HTMLTree extends Tree {
break;
case 'logout':
if (in_array($server->getAuthType(),array('config','http')))
if (in_array($server->getAuthType(),array('config','http','proxy')))
return '';
$href = sprintf('cmd.php?cmd=logout&server_id=%s',$server->getIndex());
@@ -514,17 +518,6 @@ class HTMLTree extends Tree {
$this->getDepth()+3-1,_('(Session timed out. Automatically logged out.)'));
}
/**
* Draw out link
*/
protected function draw_logout_link() {
$server = $this->getServer();
if (! in_array($server->getAuthType(),array('config','http')))
printf('<tr><td class="spacer"></td><td colspan="%s"><small><a href="cmd.php?cmd=%s&server_id=%s">%s</a></small></td></tr>',
$this->getDepth()+3-1,get_custom_file($server->getIndex(),'logout',''),$server->getIndex(),_('logout'));
}
/**
* If there is javascript, draw it
*/