Commit Graph

47 Commits

Author SHA1 Message Date
Fabian Grünbichler
ae6bf664dd update nix to 0.26
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-05 12:24:51 +01:00
Fabian Grünbichler
773400829a update d/control
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-05 12:24:46 +01:00
Wolfgang Bumiller
ce6def2192 bump version to 0.9.7-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-28 13:42:52 +02:00
Wolfgang Bumiller
40aae0593a bump proxmox-sys dep to 0.4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-07-28 13:41:59 +02:00
Fabian Grünbichler
0ec392e425 bump version to 0.9.6
for nix 0.24 rebuild

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-02 14:12:23 +02:00
Thomas Lamprecht
0afe853119 bump version to 0.9.5-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-01 15:57:00 +02:00
Mira Limbeck
4aff0d7c95 fix Open ID with Azure as provider
Azure doesn't accept `Transfer-Encoding: chunked` on their token endpoint,
but with the switch to ureq we always send requests with this set.

Fix by switching to `Content-Length` in the header instead. ureq only
sets `Transfer-Encoding: chunked` when the body length is not known
beforehand, which is the case when using `send`. See
https://docs.rs/ureq/2.4.0/ureq/index.html#content-length-and-transfer-encoding

See https://forum.proxmox.com/threads/openid-401-with-azure-ad.105892/
for the issue.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2022-04-01 15:53:44 +02:00
Thomas Lamprecht
1f47f7d3eb bump version to 0.9.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-22 11:37:59 +01:00
Thomas Lamprecht
23e6c398a2 http client: rust format and whitespace cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-22 10:57:21 +01:00
Mira Limbeck
e0535e56ad add http proxy support
ureq has support for a HTTP proxy, but no support for HTTPS proxy yet.
ureq doesn't query `all_proxy` and `ALL_PROXY` environment variables by
itself, the way curl does. So set the proxy in code if any of the above
environment variables are set.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2022-03-22 10:42:57 +01:00
Thomas Lamprecht
8b15ac202e d/control: update
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-01 13:18:22 +01:00
Thomas Lamprecht
1ab70b8c21 bump version to 0.9.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-01 13:03:57 +01:00
Wolfgang Bumiller
3531729921 include error messages in error display
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-01 10:39:23 +01:00
Wolfgang Bumiller
bd2bf045cc use native-tls for ureq
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-01 10:38:57 +01:00
Dietmar Maurer
ce9a84c54f enable gzip feature for ureq
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2022-02-01 09:13:50 +01:00
Thomas Lamprecht
cf18776173 cargo: enable "accept-rfc3339-timestamps" feature for OIDC
It doesn't pull in any new dependency and we require it to be able to
work with the auth0 provider.
https://github.com/ramosbugs/openidconnect-rs/pull/55#issuecomment-1026567725

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-01 09:03:58 +01:00
Dietmar Maurer
f3ddce5297 use ureq (with native-tls) instead of curl
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2022-02-01 08:16:39 +01:00
Dietmar Maurer
bdcecd3214 update debian/control 2021-11-24 10:16:37 +01:00
Dietmar Maurer
a92d77bf1f bump version to 0.9.2-1, depend on proxmox-sys 0.2
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-24 10:14:54 +01:00
Fabian Grünbichler
d6e7e2599f bump version to 0.9.1-1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-11-18 12:56:21 +01:00
Fabian Grünbichler
a3592355a1 bump openidconnect dep to 2.1
for updated rand/base64 support

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-11-18 12:53:37 +01:00
Dietmar Maurer
ea637eec28 bump version to 0.9.0-1 2021-11-18 09:38:47 +01:00
Dietmar Maurer
6454a54704 allow to configure acr values 2021-11-18 09:33:59 +01:00
Dietmar Maurer
897c5c7569 allow to configure prompt behaviour
And do not set it by default.
2021-11-18 09:33:11 +01:00
Dietmar Maurer
f53d242cb0 new helper verify_authorization_code_simple()
Simply return data as serde_json::Value.
2021-11-18 09:32:20 +01:00
Dietmar Maurer
cfecbee92c also return data from UserInfo endpoint 2021-11-18 09:31:44 +01:00
Dietmar Maurer
5937e44062 allow to configure used scopes 2021-11-18 09:23:24 +01:00
Dietmar Maurer
8471451a7b bump version to 0.8.1-1
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-10-21 07:15:11 +02:00
Dietmar Maurer
6aa28f0a08 add fsync parameter to replace_file
Depend on proxmox 0.15.0

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-10-21 07:12:27 +02:00
Wolfgang Bumiller
d65b2df750 update to proxmox split and bump version to 0.8.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-11 12:37:13 +02:00
Wolfgang Bumiller
8d0c0ed699 bump version to 0.7.0, depend on proxmox 0.13.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-08-25 10:41:25 +02:00
Dietmar Maurer
a3de24506a depend on proxmox 0.12.0, bump version to 0.6.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-20 18:10:48 +02:00
Dietmar Maurer
558fbff1d7 bump version to 0.6.0-2 2021-06-30 08:43:40 +02:00
Dietmar Maurer
6c9ce7dbb6 remove debug output 2021-06-30 08:42:14 +02:00
Dietmar Maurer
60eedc0da2 bump version to 0.6.0-1 2021-06-25 11:09:48 +02:00
Dietmar Maurer
1ecdc2ed72 use one lock file per realm 2021-06-25 11:05:56 +02:00
Dietmar Maurer
42dedabbb1 bump version to 0.5.0-1 2021-06-23 11:29:13 +02:00
Dietmar Maurer
5751689167 avoid unused features "sortable-macro" and "api-macro" 2021-06-23 11:27:55 +02:00
Dietmar Maurer
426f7b6014 bump versionm to 0.4.0-1 2021-06-23 11:17:30 +02:00
Dietmar Maurer
4f90d7009d set "default-features = false" for proxmox crate 2021-06-23 11:15:33 +02:00
Dietmar Maurer
8286806a19 bump version toö 0.3.0-1 2021-06-22 09:23:59 +02:00
Dietmar Maurer
ac034c72da return Url as string
To make perl bindings simple.
2021-06-21 14:12:13 +02:00
Dietmar Maurer
cc64c7e35d bump version to 0.2.0-1 2021-06-21 13:37:43 +02:00
Dietmar Maurer
73c5c4af7c implement Deserialize/Serialize for OpenIdConfig
Useful to create perl bindings.
2021-06-21 13:27:05 +02:00
Fabian Grünbichler
634e35489a add packaging
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-06-18 16:16:40 +02:00
Dietmar Maurer
dd0d18d5ce make state directory configurable (pass state_dir as parameter) 2021-06-18 10:49:38 +02:00
Dietmar Maurer
ca65d297b7 initial import 2021-06-18 10:23:57 +02:00