sources: allow uuid or slug to be used for retrieving a source (2024.12 fix) (#12772)

sources: allow uuid or slug to be used for retrieving a source

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-01-23 12:26:48 +01:00
committed by GitHub
parent 4b14eca2da
commit bccfb0b48c
8 changed files with 56 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import { DualSelectPair } from "@goauthentik/elements/ak-dual-select/types";
import { OAuthSource, SourcesApi } from "@goauthentik/api";
const sourceToSelect = (source: OAuthSource) => [
source.slug,
source.pk,
`${source.name} (${source.slug})`,
source.name,
source,