rfe #2936155 [auth] Allow to pass additional parameters using signon method.
This commit is contained in:
@@ -141,6 +141,7 @@
|
||||
- patch #3176420 [Search] Ajaxify browse and delete criteria in DB Search,
|
||||
thanks to Thilanka Kaushalya
|
||||
- [interface] New default theme pmahomme, dropped darkblue_orange theme.
|
||||
- rfe #2936155 [auth] Allow to pass additional parameters using signon method.
|
||||
|
||||
3.3.10.0 (not yet released)
|
||||
- patch #3147400 [structure] Aria table size printed as unknown,
|
||||
|
@@ -63,6 +63,9 @@ function PMA_auth_check()
|
||||
/* Current port */
|
||||
$single_signon_port = $GLOBALS['cfg']['Server']['port'];
|
||||
|
||||
/* No configuration updates */
|
||||
$single_signon_cfgupdate = array();
|
||||
|
||||
/* Are we requested to do logout? */
|
||||
$do_logout = !empty($_REQUEST['old_usr']);
|
||||
|
||||
@@ -104,6 +107,10 @@ function PMA_auth_check()
|
||||
$single_signon_port = $_SESSION['PMA_single_signon_port'];
|
||||
}
|
||||
|
||||
if (isset($_SESSION['PMA_single_signon_cfgupdate'])) {
|
||||
$single_signon_cfgupdate = $_SESSION['PMA_single_signon_cfgupdate'];
|
||||
}
|
||||
|
||||
|
||||
/* Also get token as it is needed to access subpages */
|
||||
if (isset($_SESSION['PMA_single_signon_token'])) {
|
||||
@@ -127,6 +134,9 @@ function PMA_auth_check()
|
||||
/* Set the single signon port */
|
||||
$GLOBALS['cfg']['Server']['port'] = $single_signon_port;
|
||||
|
||||
/* Configuration update */
|
||||
$GLOBALS['cfg']['Server'] = array_merge($GLOBALS['cfg']['Server'], $single_signon_cfgupdate);
|
||||
|
||||
/* Restore our token */
|
||||
if (!empty($pma_token)) {
|
||||
$_SESSION[' PMA_token '] = $pma_token;
|
||||
|
@@ -24,6 +24,8 @@ if (isset($_POST['user'])) {
|
||||
$_SESSION['PMA_single_signon_password'] = $_POST['password'];
|
||||
$_SESSION['PMA_single_signon_host'] = $_POST['host'];
|
||||
$_SESSION['PMA_single_signon_port'] = $_POST['port'];
|
||||
/* Update another field of server configuration */
|
||||
$_SESSION['PMA_single_signon_cfgupdate'] = array('verbose' => 'Signon test');
|
||||
$id = session_id();
|
||||
/* Close that session */
|
||||
session_write_close();
|
||||
|
Reference in New Issue
Block a user