Horde_Registry::_getAuthCredentials PHP Method

_getAuthCredentials() protected method

Get the list of credentials for a given app.
protected _getAuthCredentials ( string $app ) : mixed
$app string The application name.
return mixed True, false, or the credential list.
    protected function _getAuthCredentials($app)
    {
        global $session;
        $base_app = $session->get('horde', 'auth/credentials');
        if (is_null($base_app)) {
            return false;
        }
        if (is_null($app)) {
            $app = $base_app;
        }
        if (!$session->exists('horde', 'auth_app/' . $app)) {
            return $base_app != $app ? $this->_getAuthCredentials($base_app) : false;
        }
        return $session->get('horde', 'auth_app/' . $app);
    }