remove not-needed migration

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2026-05-11 14:36:52 +02:00
parent 067bb4427d
commit 3346afa6f3
7 changed files with 18 additions and 42 deletions

View File

@@ -46,7 +46,7 @@ class TestSCIMOAuthAPI(APITestCase):
{
"name": generate_id(),
"url": "http://localhost",
"auth_mode": "oauth_silent",
"auth_mode": "oauth",
"auth_oauth": str(self.source.pk),
},
)
@@ -63,7 +63,7 @@ class TestSCIMOAuthAPI(APITestCase):
{
"name": generate_id(),
"url": "http://localhost",
"auth_mode": "oauth_silent",
"auth_mode": "oauth",
"auth_oauth": str(self.source.pk),
},
)

View File

@@ -102,4 +102,16 @@ class Migration(migrations.Migration):
verbose_name="SCIM Compatibility Mode",
),
),
migrations.AlterField(
model_name="scimprovider",
name="auth_mode",
field=models.TextField(
choices=[
("token", "Token"),
("oauth_silent", "OAuth (Silent)"),
("oauth_interactive", "OAuth (interactive)"),
],
default="token",
),
),
]

View File

@@ -1,36 +0,0 @@
# Generated by Django 5.2.14 on 2026-05-05 22:11
from django.db import migrations, models
from django.apps.registry import Apps
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
def update_oauth(apps: Apps, schema_editor: BaseDatabaseSchemaEditor):
db_alias = schema_editor.connection.alias
SCIMProvider = apps.get("authentik_providers_scim", "scimprovider")
SCIMProvider.objects.using(db_alias).filter(auth_mode="oauth").update(auth_mode="oauth_silent")
class Migration(migrations.Migration):
dependencies = [
("authentik_providers_scim", "0019_scimprovider_group_filters_and_more"),
]
operations = [
migrations.AlterField(
model_name="scimprovider",
name="auth_mode",
field=models.TextField(
choices=[
("token", "Token"),
("oauth_silent", "OAuth (Silent)"),
("oauth_interactive", "OAuth (interactive)"),
],
default="token",
),
),
]

View File

@@ -72,7 +72,7 @@ class SCIMAuthenticationMode(models.TextChoices):
"""SCIM authentication modes"""
TOKEN = "token", _("Token")
OAUTH_SILENT = "oauth_silent", _("OAuth (Silent)")
OAUTH_SILENT = "oauth", _("OAuth (Silent)")
OAUTH_INTERACTIVE = "oauth_interactive", _("OAuth (interactive)")

View File

@@ -11203,7 +11203,7 @@
"type": "string",
"enum": [
"token",
"oauth_silent",
"oauth",
"oauth_interactive"
],
"title": "Auth mode"

View File

@@ -18,7 +18,7 @@
*/
export const SCIMAuthenticationModeEnum = {
Token: "token",
OauthSilent: "oauth_silent",
Oauth: "oauth",
OauthInteractive: "oauth_interactive",
UnknownDefaultOpenApi: "11184809",
} as const;

View File

@@ -54864,7 +54864,7 @@ components:
SCIMAuthenticationModeEnum:
enum:
- token
- oauth_silent
- oauth
- oauth_interactive
type: string
SCIMMapping: