The current behaviour is to use the postgres backend bundled with django. However, for custom backends, like custom credentials fetching, or credentials reload at runtime, one needs to override both the DatabaseLayer and the PostgresChannelLayer. An example is available at https://github.com/goauthentik/authentik/blob/e476db13e56addcb88a3170ba27ce7dd0ddc5c6b/authentik/root/channels.py
It would be great if that part of the code was a bit re-organised so that overriding the backend is easier.
The current behaviour is to use the postgres backend bundled with django. However, for custom backends, like custom credentials fetching, or credentials reload at runtime, one needs to override both the
DatabaseLayerand thePostgresChannelLayer. An example is available at https://github.com/goauthentik/authentik/blob/e476db13e56addcb88a3170ba27ce7dd0ddc5c6b/authentik/root/channels.pyIt would be great if that part of the code was a bit re-organised so that overriding the backend is easier.