[task-183] [mod] authelia-for-wiki_js

This commit is contained in:
roydfalk 2024-10-26 10:00:34 +02:00
parent 6aa922a20a
commit 09e667a34d
2 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,14 @@
[
{
"name": "configuration | compute client secret hash",
"become" true,
"ansible.builtin.command": {
"cmd": "authelia crypto hash generate bcrypt --password {{var_authelia_for_wiki_js_client_secret}}"
},
"set_fact": {
"temp_authelia_for_wiki_js_client_secret_hashed": "{{ command_output.stdout }}"
}
},
{
"name": "configuration | emplace",
"become": true,

View file

@ -1,6 +1,6 @@
{
"client_id": "{{var_authelia_for_wiki_js_client_id}}",
"client_secret": "{{var_authelia_for_wiki_js_client_secret}}",
"client_secret": "{{temp_authelia_for_wiki_js_client_secret_hashed}}",
"client_name": "Wiki.js",
"public": false,
"authorization_policy": "one_factor",