]> git.proxmox.com Git - proxmox-backup.git/commit
rest server: cleanup auth-log handling
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Sep 2021 05:58:50 +0000 (07:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Sep 2021 06:46:41 +0000 (08:46 +0200)
commit36b7085ec2a000eb8526aafbde445d8bbf170515
tree51b7fc146fe3fc8109931d7789c03ede2c09dfd3
parent1b1a553741b1ab9e1a5f43ff8c06fa31e0df5b70
rest server: cleanup auth-log handling

Handle auth logs the same way as access log.
- Configure with ApiConfig
- CommandoSocket command to reload auth-logs "api-auth-log-reopen"

Inside API calls, we now access the ApiConfig using the RestEnvironment.

The openid_login api now also logs failed logins and return http_err!(UNAUTHORIZED, ..)
on failed logins.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-rest-server/src/api_config.rs
proxmox-rest-server/src/environment.rs
src/api2/access/mod.rs
src/api2/access/openid.rs
src/bin/proxmox-backup-api.rs
src/bin/proxmox-backup-proxy.rs
src/server/rest.rs