diff --git a/defaults/main.yml b/defaults/main.yml index 4c747f3..463cac8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -34,6 +34,7 @@ keycloak_auth_server: https://localhost inception_project_server_auth_mode: 'database' inception_project_server_preauth_header: 'remote_user' inception_project_server_preauth_default_roles: '' +inception_project_server_set_preauth_logout_url: False inception_project_server_preauth_logout_url: "" inception_project_server_preauth_users_roles: [] # - { username: 'user', roles: 'ROLE_PROJECT_CREATOR,ROLE_ADMIN' } diff --git a/templates/settings.properties.j2 b/templates/settings.properties.j2 index b93acf7..f2e2584 100644 --- a/templates/settings.properties.j2 +++ b/templates/settings.properties.j2 @@ -4,7 +4,9 @@ warnings.unsupportedBrowser=false {% endfor %} {% if inception_project_server_auth_mode == "preauth" %} auth.preauth.header.principal={{ inception_project_server_preauth_header }} +{% if inception_project_server_set_preauth_logout_url %} auth.preauth.logoutUrl={{ inception_project_server_preauth_logout_url }} +{% endif %} auth.preauth.newuser.roles={{ inception_project_server_preauth_default_roles }} {% for user_role in inception_project_server_preauth_users_roles %} auth.user.{{ user_role.username }}.roles={{ user_role.roles }}