<?xml version="1.0" encoding="UTF-8"?>
<authdriver enabled="false" name="basic_http" label="CONF_MESSAGE[Basic HTTP]" description="CONF_MESSAGE[Use the standard http authentication.]" mixins="authdriver_commons" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <client_settings>
        <resources>
            <i18n namespace="basic_http_auth" path="plugins/auth.basic_http/i18n"/>
        </resources>
    </client_settings>
    <server_settings>
        <param name="USERS_FILEPATH" type="string" label="CONF_MESSAGE[Users]" description="CONF_MESSAGE[The users list]" mandatory="true"/>
        <param name="LOGOUT_URL" type="string" label="CONF_MESSAGE[Logout URL]" description="CONF_MESSAGE[Redirect to the given URL on loggin out]" mandatory="false" />
    </server_settings>
	<class_definition filename="plugins/auth.basic_http/class.basic_httpAuthDriver.php" classname="basic_httpAuthDriver"/>
	<registry_contributions>
		<external_file filename="plugins/core.auth/standard_auth_actions.xml" include="actions/*"/>
        <actions>
            <action name="logout" expireDefault="true">
                <gui text="164" title="169" src="decrypted.png" accessKey="" hasAccessKey="false" forbidOverride="true">
                    <context selection="false" dir="" recycle="false"
                            actionBar="true" contextMenu="false" infoPanel="false"
                            actionBarGroup="user" ajxpWidgets="UserWidget::logging_string">
                    </context>
                </gui>
                <rightsContext noUser="false" userLogged="only" guestLogged="show" read="false" write="false" adminOnly="" forbidOverride="true"/>
                <processing forbidOverride="true">
                    <clientCallback prepareModal="false"><![CDATA[
                        clearRememberData();
                        var connexion = new Connexion();
                        connexion.addParameter('get_action', 'back');
                        connexion.onComplete = function(transport){
                                var child = transport.responseXML.documentElement.childNodes;
                                try{
                                    document.location.href = child[0].nodeValue;
                                }catch(e){}
                        };
                        connexion.sendAsync();
                        ]]></clientCallback>
                    <serverCallback methodName="switchAction"/>
                </processing>
            </action>
        </actions>

	</registry_contributions>
	<dependencies>
		<pluginClass pluginName="auth.serial"/>
	</dependencies>
</authdriver>
