Authelia | client-secrets hashen #3

Merged
roydfalk merged 12 commits from dev-authelia_hashed_client_secrets into main 2024-10-26 12:10:57 +02:00
3 changed files with 26 additions and 2 deletions
Showing only changes of commit 50b5dd63e2 - Show all commits

View file

@ -1,4 +1,28 @@
[ [
{
"name": "configuration | compute client secret hash | web",
"become": true,
"ansible.builtin.shell": {
"cmd": "authelia crypto hash generate bcrypt --password {{var_authelia_for_owncloud_web_client_secret}} | cut --delimiter=' ' --fields='2-'"
},
"register": "temp_authelia_for_owncloud_web_client_secret_hashed"
},
{
"name": "configuration | compute client secret hash | android",
"become": true,
"ansible.builtin.shell": {
"cmd": "authelia crypto hash generate bcrypt --password {{var_authelia_for_owncloud_android_client_secret}} | cut --delimiter=' ' --fields='2-'"
},
"register": "temp_authelia_for_owncloud_android_client_secret_hashed"
},
{
"name": "configuration | compute client secret hash | ios",
"become": true,
"ansible.builtin.shell": {
"cmd": "authelia crypto hash generate bcrypt --password {{var_authelia_for_owncloud_ios_client_secret}} | cut --delimiter=' ' --fields='2-'"
},
"register": "temp_authelia_for_owncloud_ios_client_secret_hashed"
},
{ {
"name": "configuration | emplace", "name": "configuration | emplace",
"become": true, "become": true,

View file

@ -1,6 +1,6 @@
{ {
"client_id": "{{var_authelia_for_owncloud_android_client_id}}", "client_id": "{{var_authelia_for_owncloud_android_client_id}}",
"client_secret": "{{var_authelia_for_owncloud_android_client_secret}}", "client_secret": "{{temp_authelia_for_owncloud_android_client_secret_hashed.stdout}}",
"client_name": "ownCloud | Android Client", "client_name": "ownCloud | Android Client",
"authorization_policy": "one_factor", "authorization_policy": "one_factor",
"scopes": [ "scopes": [

View file

@ -1,6 +1,6 @@
{ {
"client_id": "{{var_authelia_for_owncloud_ios_client_id}}", "client_id": "{{var_authelia_for_owncloud_ios_client_id}}",
"client_secret": "{{var_authelia_for_owncloud_ios_client_secret}}", "client_secret": "{{temp_authelia_for_owncloud_ios_client_secret_hashed.stdout}}",
"client_name": "ownCloud | iOS Client", "client_name": "ownCloud | iOS Client",
"authorization_policy": "one_factor", "authorization_policy": "one_factor",
"scopes": [ "scopes": [