diff --git a/authentik/outposts/management/commands/repair_permissions.py b/authentik/outposts/management/commands/repair_permissions.py index 3f220ae37..cae7976ea 100644 --- a/authentik/outposts/management/commands/repair_permissions.py +++ b/authentik/outposts/management/commands/repair_permissions.py @@ -1,7 +1,7 @@ """Repair missing permissions""" -from django.core.management.base import BaseCommand, no_translations from django.apps import apps from django.contrib.auth.management import create_permissions +from django.core.management.base import BaseCommand, no_translations class Command(BaseCommand): # pragma: no cover diff --git a/authentik/outposts/models.py b/authentik/outposts/models.py index 80a17bfea..cb186cd6a 100644 --- a/authentik/outposts/models.py +++ b/authentik/outposts/models.py @@ -372,10 +372,11 @@ class Outpost(ManagedModel): Event.new( action=EventAction.SYSTEM_EXCEPTION, message=( - "While setting the permissions for the service-account, a permission " - "was not found: " - "Check https://goauthentik.io/docs/troubleshooting/missing_permission" - ) + exception_to_string(exc), + "While setting the permissions for the service-account, a " + "permission was not found: Check " + "https://goauthentik.io/docs/troubleshooting/missing_permission" + ) + + exception_to_string(exc), ).set_user(user).save() else: app_label, perm = model_or_perm.split(".") diff --git a/web/src/flows/FlowExecutor.ts b/web/src/flows/FlowExecutor.ts index cc760e249..b05dbc283 100644 --- a/web/src/flows/FlowExecutor.ts +++ b/web/src/flows/FlowExecutor.ts @@ -159,8 +159,6 @@ export class FlowExecutor extends LitElement implements StageHost { let body = ""; if (error instanceof Error) { body = error.message; - } else if (error instanceof Response) { - body = await error.text(); } this.challenge = { type: ChallengeChoices.Shell,