diff --git a/authentik/core/api/tokens.py b/authentik/core/api/tokens.py index 24c5b76e7..d246629e6 100644 --- a/authentik/core/api/tokens.py +++ b/authentik/core/api/tokens.py @@ -82,6 +82,7 @@ class TokenViewSet(UsedByMixin, ModelViewSet): "description", "expires", "expiring", + "managed", ] ordering = ["identifier", "expires"] permission_classes = [OwnerSuperuserPermissions] diff --git a/schema.yml b/schema.yml index 9aba2a107..371eae18e 100644 --- a/schema.yml +++ b/schema.yml @@ -2318,6 +2318,10 @@ paths: - app_password - recovery - verification + - in: query + name: managed + schema: + type: string - name: ordering required: false in: query diff --git a/web/src/user/user-settings/tokens/UserTokenList.ts b/web/src/user/user-settings/tokens/UserTokenList.ts index 69274be45..99b699910 100644 --- a/web/src/user/user-settings/tokens/UserTokenList.ts +++ b/web/src/user/user-settings/tokens/UserTokenList.ts @@ -37,6 +37,7 @@ export class UserTokenList extends Table { page: page, pageSize: PAGE_SIZE, search: this.search || "", + managed: "", }); }