-
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.
* remove saml * remove license file and management command * update requirements, add migrations * remove unused imports
- Loading branch information
1 parent
9077aaa
commit 81e9b1a
Showing
35 changed files
with
76 additions
and
2,439 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
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), | ||
] |
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 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
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
Oops, something went wrong.