role:authelia-for-zeitbild_backend
This commit is contained in:
parent
4c577dcbe2
commit
839d65c2e2
4 changed files with 51 additions and 0 deletions
5
roles/authelia-for-zeitbild_backend/defaults/main.json
Normal file
5
roles/authelia-for-zeitbild_backend/defaults/main.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"var_authelia_for_zeitbild_backend_zeitbild_backend_url_base": "https://zeitbild_backend.example.org",
|
||||||
|
"var_authelia_for_zeitbild_backend_client_id": "zeitbild_backend",
|
||||||
|
"var_authelia_for_zeitbild_backend_client_secret": "REPLACE_ME"
|
||||||
|
}
|
4
roles/authelia-for-zeitbild_backend/info.md
Normal file
4
roles/authelia-for-zeitbild_backend/info.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
## Beschreibung
|
||||||
|
|
||||||
|
Um [zeitbild](../zeitbild_backend) gegen [Authelia](../authelia) authentifizieren zu lassen
|
||||||
|
|
25
roles/authelia-for-zeitbild_backend/tasks/main.json
Normal file
25
roles/authelia-for-zeitbild_backend/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/zeitbild_backend.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,17 @@
|
||||||
|
{
|
||||||
|
"client_id": "{{var_authelia_for_zeitbild_backend_client_id}}",
|
||||||
|
"client_secret": "{{var_authelia_for_zeitbild_backend_client_secret}}",
|
||||||
|
"client_name": "Forgejo",
|
||||||
|
"public": false,
|
||||||
|
"authorization_policy": "one_factor",
|
||||||
|
"redirect_uris": [
|
||||||
|
"{{var_authelia_for_zeitbild_backend_zeitbild_backend_url_base}}/user/oauth2/authelia/callback"
|
||||||
|
],
|
||||||
|
"scopes": [
|
||||||
|
"openid",
|
||||||
|
"email",
|
||||||
|
"profile"
|
||||||
|
],
|
||||||
|
"userinfo_signed_response_alg": "none",
|
||||||
|
"token_endpoint_auth_method": "client_secret_basic"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue