-
-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
- Loading branch information
Showing
5 changed files
with
168 additions
and
42 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
...tik/enterprise/providers/ssf/migrations/0005_alter_stream_events_requested_streamevent.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,79 @@ | ||
# Generated by Django 5.0.10 on 2024-12-11 18:33 | ||
|
||
import django.contrib.postgres.fields | ||
import django.db.models.deletion | ||
import uuid | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_providers_ssf", "0004_stream_aud_alter_stream_events_requested"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="stream", | ||
name="events_requested", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.TextField( | ||
choices=[ | ||
( | ||
"https://schemas.openid.net/secevent/caep/event-type/session-revoked", | ||
"Caep Session Revoked", | ||
), | ||
( | ||
"https://schemas.openid.net/secevent/caep/event-type/credential-change", | ||
"Caep Credential Change", | ||
), | ||
( | ||
"https://schemas.openid.net/secevent/ssf/event-type/verification", | ||
"Set Verification", | ||
), | ||
] | ||
), | ||
default=list, | ||
size=None, | ||
), | ||
), | ||
migrations.CreateModel( | ||
name="StreamEvent", | ||
fields=[ | ||
( | ||
"uuid", | ||
models.UUIDField( | ||
default=uuid.uuid4, editable=False, primary_key=True, serialize=False | ||
), | ||
), | ||
("status", models.TextField(choices=[("pending", "Pending"), ("sent", "Sent")])), | ||
( | ||
"type", | ||
models.TextField( | ||
choices=[ | ||
( | ||
"https://schemas.openid.net/secevent/caep/event-type/session-revoked", | ||
"Caep Session Revoked", | ||
), | ||
( | ||
"https://schemas.openid.net/secevent/caep/event-type/credential-change", | ||
"Caep Credential Change", | ||
), | ||
( | ||
"https://schemas.openid.net/secevent/ssf/event-type/verification", | ||
"Set Verification", | ||
), | ||
] | ||
), | ||
), | ||
("payload", models.JSONField(default=dict)), | ||
( | ||
"stream", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="authentik_providers_ssf.stream", | ||
), | ||
), | ||
], | ||
), | ||
] |
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
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