core: don't delete expired tokens, rotate their key
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		
							
								
								
									
										47
									
								
								authentik/events/migrations/0017_alter_event_action.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								authentik/events/migrations/0017_alter_event_action.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,47 @@
 | 
			
		||||
# Generated by Django 3.2.5 on 2021-07-14 19:15
 | 
			
		||||
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ("authentik_events", "0016_add_tenant"),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    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"),
 | 
			
		||||
                    ("secret_view", "Secret View"),
 | 
			
		||||
                    ("secret_rotate", "Secret Rotate"),
 | 
			
		||||
                    ("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"),
 | 
			
		||||
                    ("system_task_execution", "System Task Execution"),
 | 
			
		||||
                    ("system_task_exception", "System Task Exception"),
 | 
			
		||||
                    ("system_exception", "System Exception"),
 | 
			
		||||
                    ("configuration_error", "Configuration Error"),
 | 
			
		||||
                    ("model_created", "Model Created"),
 | 
			
		||||
                    ("model_updated", "Model Updated"),
 | 
			
		||||
                    ("model_deleted", "Model Deleted"),
 | 
			
		||||
                    ("email_sent", "Email Sent"),
 | 
			
		||||
                    ("update_available", "Update Available"),
 | 
			
		||||
                    ("custom_", "Custom Prefix"),
 | 
			
		||||
                ]
 | 
			
		||||
            ),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Reference in New Issue
	
	Block a user