Skip to content

Commit 3ebb0a8

Browse files
committed
Fix tailnet auth flow provider lookup
1 parent 8de7984 commit 3ebb0a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Scripts/authentik-sync-tailnet-auth-flow.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ mapfile -t provider_pks < <(
279279
| jq -r --argjson provider_slugs "$provider_slugs_json" '
280280
.results[]?
281281
| select(
282-
(.assigned_application_slug != null and ($provider_slugs | index(.assigned_application_slug) != null))
283-
or (.slug != null and ($provider_slugs | index(.slug) != null))
282+
((.assigned_application_slug // empty) as $assigned | ($provider_slugs | index($assigned)) != null)
283+
or ((.slug // empty) as $slug | ($provider_slugs | index($slug)) != null)
284284
)
285285
| .pk // empty
286286
'

0 commit comments

Comments
 (0)