Set the logout url on request only.

This commit is contained in:
Andrea Dell'Amico 2021-11-04 14:57:58 +01:00
parent e41e74a9a5
commit 0063f602c9
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 3 additions and 0 deletions

View File

@ -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' }

View File

@ -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 }}