diff --git a/authentik/policies/process.py b/authentik/policies/process.py index 11b2b651f..88a98116f 100644 --- a/authentik/policies/process.py +++ b/authentik/policies/process.py @@ -76,11 +76,11 @@ class PolicyProcess(Process): try: policy_result = self.binding.policy.passes(self.request) if self.binding.policy.execution_logging: - self.create_event(EventAction.POLICY_EXECUTION, result=policy_result) + self.create_event(EventAction.POLICY_EXECUTION, message="Policy Execution", result=policy_result) except PolicyException as exc: # Create policy exception event error_string = "".join(format_tb(exc.__traceback__)) + str(exc) - self.create_event(EventAction.POLICY_EXCEPTION, error=error_string) + self.create_event(EventAction.POLICY_EXCEPTION, message=error_string) LOGGER.debug("P_ENG(proc): error", exc=exc) policy_result = PolicyResult(False, str(exc)) policy_result.source_policy = self.binding.policy diff --git a/web/src/pages/events/EventInfo.ts b/web/src/pages/events/EventInfo.ts index 763c17960..f172846bc 100644 --- a/web/src/pages/events/EventInfo.ts +++ b/web/src/pages/events/EventInfo.ts @@ -95,7 +95,7 @@ export class EventInfo extends LitElement { return html`
${this.event.context.error}
+ ${this.event.context.error || this.event.context.message}