[add] role:authelia-for-dokuwiki
This commit is contained in:
parent
05001b99cc
commit
acfa9c0745
4 changed files with 61 additions and 0 deletions
5
ansible/roles/authelia-for-dokuwiki/defaults/main.json
Normal file
5
ansible/roles/authelia-for-dokuwiki/defaults/main.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"var_authelia_for_dokuwiki_dokuwiki_url_base": "https://dokuwiki.example.org",
|
||||
"var_authelia_for_dokuwiki_client_id": "dokuwiki",
|
||||
"var_authelia_for_dokuwiki_client_secret": "REPLACE_ME"
|
||||
}
|
3
ansible/roles/authelia-for-dokuwiki/info.md
Normal file
3
ansible/roles/authelia-for-dokuwiki/info.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
## Beschreibung
|
||||
|
||||
Um [DokuWiki](../dokuwiki) gegen [Authelia](../authelia) authentifizieren zu lassen
|
25
ansible/roles/authelia-for-dokuwiki/tasks/main.json
Normal file
25
ansible/roles/authelia-for-dokuwiki/tasks/main.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
{
|
||||
"name": "configuration | emplace",
|
||||
"become": true,
|
||||
"ansible.builtin.template": {
|
||||
"src": "authelia-client-conf.json.j2",
|
||||
"dest": "/etc/authelia/conf.d/clients/dokuwiki.json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "configuration | apply",
|
||||
"become": true,
|
||||
"ansible.builtin.command": {
|
||||
"cmd": "/usr/bin/authelia-conf-compose"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "restart service",
|
||||
"become": true,
|
||||
"ansible.builtin.systemd_service": {
|
||||
"state": "restarted",
|
||||
"name": "authelia"
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"id": "{{var_authelia_for_dokuwiki_client_id}}",
|
||||
"description": "DokuWiki",
|
||||
"secret": "{{var_authelia_for_dokuwiki_client_secret}}",
|
||||
"public": false,
|
||||
"authorization_policy": "one_factor",
|
||||
"scopes": [
|
||||
"openid",
|
||||
"email",
|
||||
"profile"
|
||||
],
|
||||
"redirect_uris": [
|
||||
"{{var_authelia_for_dokuwiki_dokuwiki_url_base}}/doku.php"
|
||||
],
|
||||
"grant_types": [
|
||||
"refresh_token",
|
||||
"authorization_code"
|
||||
],
|
||||
"response_types": [
|
||||
"code"
|
||||
],
|
||||
"response_modes": [
|
||||
"form_post",
|
||||
"query",
|
||||
"fragment"
|
||||
],
|
||||
"userinfo_signing_algorithm": "none"
|
||||
}
|
Loading…
Add table
Reference in a new issue