proxmox-backup/pbs-api-types/src
Gabriel Goller e0222ce83c fix #5190: api: OIDC: accept generic URIs for the ACR value
Allow more complex strings for the acr-value when using openid. The
openid documentation only specifies the acr-value *should* be an URI
[0].  Implemented a regex that loosely disallows some of the reserved
URI characters specified in the RFC [1].

Currently values like:
- "urn:mace:incommon:iap:silver"
- "urn:comsolve.nl:idp:contract:rba:location"
do NOT work, although they are correct URI's and common acr tokens.

For Proxmox VE we had to actually make this more strict to align with
each other, as there we accepted any string.

[0]: https://openid.net/specs/openid-connect-core-1_0.html
[1]: https://www.rfc-editor.org/rfc/rfc2396.txt

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
2024-02-08 18:14:30 +01:00
..
tape tape: move 'eject-before-unload' to a plain changer config option 2023-12-14 10:23:49 +01:00
acl.rs AclListItem: derive Clone and PartialEq 2023-09-02 16:24:45 +02:00
common_regex.rs update to proxmox-sys 0.2 crate 2021-11-24 10:32:27 +01:00
crypto.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
datastore.rs fix #4315: jobs: modify GroupFilter so include/exclude is tracked 2024-01-10 10:13:45 +01:00
file_restore.rs pbs-api-types: add FileRestoreFormat type 2022-10-05 18:40:49 +02:00
jobs.rs api-types: doc improvements 2024-01-10 10:13:45 +01:00
key_derivation.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
ldap.rs access: ldap check connection on creation and change 2023-06-26 16:08:24 +02:00
lib.rs fix #5190: api: OIDC: accept generic URIs for the ACR value 2024-02-08 18:14:30 +01:00
maintenance.rs api-types: add MaintenanceType::Delete 2022-11-28 14:45:39 +01:00
metrics.rs tree-wide: fix various typos 2023-11-29 18:32:07 +01:00
network.rs Interface: add missing serde skip_serializing_if to bond_xmit_hash_policy 2023-10-12 12:39:18 +02:00
node.rs node: status: declutter kernel-version 2023-11-29 15:31:35 +01:00
openid.rs fix #5190: api: OIDC: accept generic URIs for the ACR value 2024-02-08 18:14:30 +01:00
percent_encoding.rs move pbs-tools/src/percent_encoding.rs to pbs-api-types/src/percent_encoding.rs 2021-11-25 11:48:52 +01:00
remote.rs api-types: add a missing serde(default) 2023-12-06 15:53:57 +01:00
traffic_control.rs tree-wide: fix various typos 2023-11-29 18:32:07 +01:00
user.rs api-types: set serde defaults for UserWithTokens 2023-08-01 09:12:43 +02:00
zfs.rs api-types: clippy fixes 2022-07-27 13:29:32 +02:00