<!--only basic authentication available-->
<init-param>
<param-name>authentication.type</param-name>
<param-value>os_authType</param-value>
</init-param>
<!-- Invalidate session on login to prevent session fixation attack -->
<init-param>
<param-name>invalidate.session.on.login</param-name>
<param-value>true</param-value>
</init-param>
<!-- Add names for session attributes that must not be copied to a new session when the old one gets invalidated.
Currently it is empty (i.e. all attributes will be copied). -->
<init-param>
<param-name>invalidate.session.exclude.list</param-name>
<param-value></param-value>
</init-param>
</parameters>
I tried the following code
‘’’
- name: Test 1
community.general.xml:
path: config.xml
xpath: /security-config/parameters/init-param
add_children:
- init-param:
param-name: logout.url
param-value: http://google.com
‘’’
But the results no like as I expected the lines add in bottom of file like :
‘’’
<?xml version='1.0' encoding='UTF-8'?>
<security-config>
<parameters>
<!--only
basic authentication available-->
<init-param>
<param-name>authentication.type</param-name>
<param-value>os_authType</param-value>
</init-param>
<!-- Invalidate session on login to prevent session fixation attack -->
<init-param>
<param-name>invalidate.session.on.login</param-name>
<param-value>true</param-value>
</init-param>
<!-- Add names for session attributes that must not be copied to a new session when the old
one gets invalidated. Currently it is empty (i.e. all attributes will be copied). -->
<init-param>
<param-name>invalidate.session.exclude.list</param-name>
<param-value />
</init-param>
<!-- NEW PARAMS -->
<init_param>
<param-name>logout.url</param-name>
<param-value>http://google.com</param-value>
</init_param>
</parameters>
</security-config>