flows: remove default-enrollment

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-29 18:14:37 +02:00
parent 14f85ec980
commit 9dd6b7d436
6 changed files with 34 additions and 31 deletions

View File

@ -21,11 +21,6 @@ urlpatterns = [
ToDefaultFlow.as_view(designation=FlowDesignation.RECOVERY),
name="default-recovery",
),
path(
"-/default/enrollment/",
ToDefaultFlow.as_view(designation=FlowDesignation.ENROLLMENT),
name="default-enrollment",
),
path(
"-/default/unenrollment/",
ToDefaultFlow.as_view(designation=FlowDesignation.UNRENOLLMENT),

View File

@ -0,0 +1,33 @@
# Generated by Django 3.2.3 on 2021-05-29 16:10
import django.contrib.postgres.fields
from django.db import migrations, models
import authentik.stages.authenticator_validate.models
class Migration(migrations.Migration):
dependencies = [
("authentik_stages_authenticator_validate", "0007_auto_20210403_0927"),
]
operations = [
migrations.AlterField(
model_name="authenticatorvalidatestage",
name="device_classes",
field=django.contrib.postgres.fields.ArrayField(
base_field=models.TextField(
choices=[
("static", "Static"),
("totp", "TOTP"),
("webauthn", "WebAuthn"),
("duo", "Duo"),
]
),
default=authentik.stages.authenticator_validate.models.default_device_classes,
help_text="Device classes which can be used to authenticate",
size=None,
),
),
]

View File

@ -35,7 +35,6 @@ class TenantSerializer(ModelSerializer):
"flow_authentication",
"flow_invalidation",
"flow_recovery",
"flow_enrollment",
"flow_unenrollment",
]

View File

@ -1,4 +1,4 @@
# Generated by Django 3.2.3 on 2021-05-29 12:18
# Generated by Django 3.2.3 on 2021-05-29 16:10
import uuid
@ -50,15 +50,6 @@ class Migration(migrations.Migration):
to="authentik_flows.flow",
),
),
(
"flow_enrollment",
models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="tenant_enrollment",
to="authentik_flows.flow",
),
),
(
"flow_invalidation",
models.ForeignKey(

View File

@ -35,9 +35,6 @@ class Tenant(models.Model):
flow_recovery = models.ForeignKey(
Flow, null=True, on_delete=models.SET_NULL, related_name="tenant_recovery"
)
flow_enrollment = models.ForeignKey(
Flow, null=True, on_delete=models.SET_NULL, related_name="tenant_enrollment"
)
flow_unenrollment = models.ForeignKey(
Flow, null=True, on_delete=models.SET_NULL, related_name="tenant_unenrollment"
)

View File

@ -23125,10 +23125,6 @@ components:
type: string
format: uuid
nullable: true
flow_enrollment:
type: string
format: uuid
nullable: true
flow_unenrollment:
type: string
format: uuid
@ -25112,10 +25108,6 @@ components:
type: string
format: uuid
nullable: true
flow_enrollment:
type: string
format: uuid
nullable: true
flow_unenrollment:
type: string
format: uuid
@ -25149,10 +25141,6 @@ components:
type: string
format: uuid
nullable: true
flow_enrollment:
type: string
format: uuid
nullable: true
flow_unenrollment:
type: string
format: uuid