This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/authentik
sdimovv 8d13235b74
blueprints: fixed bug causing filtering with an empty query (#4106)
* Fixed bug causing filtering with an empty query

Fixed bug allowing blueprint import to filter for existing models using an empty query.

The code only checks if the `identifiers` dict is empty, but `__query_from_identifier` skips identifier member values of type `dict` or keys == `pk`, so it is possible to produce an empty query if an `identifier` consists of just `dict` type members or "pk" key. 

Signed-off-by: sdimovv <36302090+sdimovv@users.noreply.github.com>

* Added test case

* Added support for using dict fields as blueprint entry identifiers

* Disabled pylint too-many-locals for _validate_single

Signed-off-by: sdimovv <36302090+sdimovv@users.noreply.github.com>
2022-12-06 12:06:25 +01:00
..
admin admin: add authorisations metric (#3811) 2022-10-19 00:06:45 +02:00
api providers/oauth2: set amr values based on login event 2022-11-25 11:21:59 +01:00
blueprints blueprints: fixed bug causing filtering with an empty query (#4106) 2022-12-06 12:06:25 +01:00
core lib: fix uploaded files not being saved correctly, add tests 2022-11-30 12:48:33 +02:00
crypto providers/oauth2: fix issues with es256 and add tests (#3808) 2022-10-18 22:01:29 +02:00
events events: improve handling creation of events with non-pickleable objects 2022-12-01 15:56:28 +02:00
flows security: fix CVE 2022 46145 (#4140) 2022-12-02 16:14:25 +01:00
lib lib: fix uploaded files not being saved correctly, add tests 2022-11-30 12:48:33 +02:00
outposts root: use single redis db (#4009) 2022-11-15 14:31:29 +01:00
policies events: improve handling creation of events with non-pickleable objects 2022-12-01 15:56:28 +02:00
providers events: fix incorrect EventAction being used 2022-11-25 11:53:05 +01:00
recovery root: fix settings for managed not loaded 2021-11-15 19:49:03 +01:00
root stages/authenticator_validate: add flag to configure user_verification for webauthn devices 2022-11-21 17:52:37 +01:00
sources *: don't return values in test suites 2022-11-22 11:38:34 +01:00
stages stages/authenticator_validate: improve validation for not_configured_action 2022-11-28 10:52:51 +01:00
tenants core: explicitly enable locales (#3889) 2022-10-28 19:42:49 +02:00
__init__.py release: 2022.11.2 2022-12-01 10:41:29 +02:00