a4dc6d13b5
* events: rename audit to events * policies/expression: log expression exceptions as event * policies/expression: add ExpressionPolicy Model to event when possible * lib/expressions: ensure syntax errors are logged too * lib: fix lint error * policies: add execution_logging field * core: add property mapping tests * policies/expression: add full test * policies/expression: fix attribute name * policies: add execution_logging * web: fix imports * root: update swagger * policies: use dataclass instead of dict for types * events: add support for dataclass as event param * events: add special keys which are never cleaned * policies: add tests for process, don't clean full cache * admin: create event when new version is seen * events: move utils to separate file * admin: add tests for admin tasks * events: add .set_user method to ensure users have correct attributes set * core: add test for property_mapping errors with user and request
43 lines
1.6 KiB
Python
43 lines
1.6 KiB
Python
# Generated by Django 3.1.4 on 2020-12-20 16:51
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("authentik_events", "0007_auto_20201215_0939"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="event",
|
|
name="action",
|
|
field=models.TextField(
|
|
choices=[
|
|
("login", "Login"),
|
|
("login_failed", "Login Failed"),
|
|
("logout", "Logout"),
|
|
("user_write", "User Write"),
|
|
("suspicious_request", "Suspicious Request"),
|
|
("password_set", "Password Set"),
|
|
("token_view", "Token View"),
|
|
("invitation_created", "Invite Created"),
|
|
("invitation_used", "Invite Used"),
|
|
("authorize_application", "Authorize Application"),
|
|
("source_linked", "Source Linked"),
|
|
("impersonation_started", "Impersonation Started"),
|
|
("impersonation_ended", "Impersonation Ended"),
|
|
("policy_execution", "Policy Execution"),
|
|
("policy_exception", "Policy Exception"),
|
|
("property_mapping_exception", "Property Mapping Exception"),
|
|
("model_created", "Model Created"),
|
|
("model_updated", "Model Updated"),
|
|
("model_deleted", "Model Deleted"),
|
|
("update_available", "Update Available"),
|
|
("custom_", "Custom Prefix"),
|
|
]
|
|
),
|
|
),
|
|
]
|