-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stages/authenticator: add created, last_updated and last_used metadata (
#10636) * stages/authenticator: add created, last_updated and last_used metadata Signed-off-by: Marc 'risson' Schmitt <[email protected]> * lint Signed-off-by: Marc 'risson' Schmitt <[email protected]> * also show for users Signed-off-by: Marc 'risson' Schmitt <[email protected]> * set allow_null Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Marc 'risson' Schmitt <[email protected]> Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: Jens Langhammer <[email protected]>
- Loading branch information
Showing
11 changed files
with
209 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...es/authenticator_duo/migrations/0006_duodevice_created_duodevice_last_updated_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.7 on 2024-07-25 16:28 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_authenticator_duo", "0005_authenticatorduostage_friendly_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="duodevice", | ||
name="created", | ||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(1, 1, 1, 0, 0)), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="duodevice", | ||
name="last_updated", | ||
field=models.DateTimeField(auto_now=True), | ||
), | ||
migrations.AddField( | ||
model_name="duodevice", | ||
name="last_used", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
30 changes: 30 additions & 0 deletions
30
...es/authenticator_sms/migrations/0007_smsdevice_created_smsdevice_last_updated_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.7 on 2024-07-25 16:28 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_authenticator_sms", "0006_authenticatorsmsstage_friendly_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="smsdevice", | ||
name="created", | ||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(1, 1, 1, 0, 0)), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="smsdevice", | ||
name="last_updated", | ||
field=models.DateTimeField(auto_now=True), | ||
), | ||
migrations.AddField( | ||
model_name="smsdevice", | ||
name="last_used", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
30 changes: 30 additions & 0 deletions
30
...ticator_static/migrations/0010_staticdevice_created_staticdevice_last_updated_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.7 on 2024-07-25 16:28 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_authenticator_static", "0009_throttling"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="staticdevice", | ||
name="created", | ||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(1, 1, 1, 0, 0)), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="staticdevice", | ||
name="last_updated", | ||
field=models.DateTimeField(auto_now=True), | ||
), | ||
migrations.AddField( | ||
model_name="staticdevice", | ||
name="last_used", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
30 changes: 30 additions & 0 deletions
30
...authenticator_totp/migrations/0011_totpdevice_created_totpdevice_last_updated_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.7 on 2024-07-25 16:28 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_authenticator_totp", "0010_alter_totpdevice_key"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="totpdevice", | ||
name="created", | ||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(1, 1, 1, 0, 0)), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="totpdevice", | ||
name="last_updated", | ||
field=models.DateTimeField(auto_now=True), | ||
), | ||
migrations.AddField( | ||
model_name="totpdevice", | ||
name="last_used", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
30 changes: 30 additions & 0 deletions
30
...r_webauthn/migrations/0012_webauthndevice_created_webauthndevice_last_updated_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.7 on 2024-07-25 16:28 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_stages_authenticator_webauthn", "0001_squashed_0011_webauthndevice_aaguid"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="webauthndevice", | ||
name="created", | ||
field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(1, 1, 1, 0, 0)), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="webauthndevice", | ||
name="last_updated", | ||
field=models.DateTimeField(auto_now=True), | ||
), | ||
migrations.AddField( | ||
model_name="webauthndevice", | ||
name="last_used", | ||
field=models.DateTimeField(null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters