-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ca549f
commit f562dd4
Showing
5 changed files
with
58 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generated by Django 4.2.10 on 2024-08-27 14:20 | ||
|
||
from django.db import migrations | ||
|
||
SAML_AUTH_CONF_KEYS = [ | ||
'SAML_AUTO_CREATE_OBJECTS', | ||
'SOCIAL_AUTH_SAML_CALLBACK_URL', | ||
'SOCIAL_AUTH_SAML_METADATA_URL', | ||
'SOCIAL_AUTH_SAML_SP_ENTITY_ID', | ||
'SOCIAL_AUTH_SAML_SP_PUBLIC_CERT', | ||
'SOCIAL_AUTH_SAML_SP_PRIVATE_KEY', | ||
'SOCIAL_AUTH_SAML_ORG_INFO', | ||
'SOCIAL_AUTH_SAML_TECHNICAL_CONTACT', | ||
'SOCIAL_AUTH_SAML_SUPPORT_CONTACT', | ||
'SOCIAL_AUTH_SAML_ENABLED_IDPS', | ||
'SOCIAL_AUTH_SAML_SECURITY_CONFIG', | ||
'SOCIAL_AUTH_SAML_SP_EXTRA', | ||
'SOCIAL_AUTH_SAML_EXTRA_DATA', | ||
'SOCIAL_AUTH_SAML_ORGANIZATION_MAP', | ||
'SOCIAL_AUTH_SAML_TEAM_MAP', | ||
'SOCIAL_AUTH_SAML_ORGANIZATION_ATTR', | ||
'SOCIAL_AUTH_SAML_TEAM_ATTR', | ||
'SOCIAL_AUTH_SAML_USER_FLAGS_BY_ATTR', | ||
] | ||
|
||
|
||
def remove_saml_auth_conf(apps, scheme_editor): | ||
setting = apps.get_model('conf', 'Setting') | ||
setting.objects.filter(key__in=SAML_AUTH_CONF_KEYS).delete() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('conf', '0010_change_to_JSONField'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(remove_saml_auth_conf), | ||
] |
18 changes: 18 additions & 0 deletions
18
awx/sso/migrations/0004_alter_userenterpriseauth_provider.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,18 @@ | ||
# Generated by Django 4.2.10 on 2024-10-02 12:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sso', '0003_convert_saml_string_to_list'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userenterpriseauth', | ||
name='provider', | ||
field=models.CharField(choices=[('radius', 'RADIUS'), ('tacacs+', 'TACACS+')], max_length=32), | ||
), | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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