similar to https://github.com/goauthentik/authentik/pull/6767 Signed-off-by: Jens Langhammer <jens@goauthentik.io>