mirror of
https://github.com/ansible/awx.git
synced 2026-05-02 23:25:29 -02:30
Remove OIDC (#15569)
* remove oidc * remove test fields, linting fix * merge commit
This commit is contained in:
20
awx/conf/migrations/0011_remove_oidc_auth_conf.py
Normal file
20
awx/conf/migrations/0011_remove_oidc_auth_conf.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 4.2.10 on 2024-08-27 19:31
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
OIDC_AUTH_CONF_KEYS = ['SOCIAL_AUTH_OIDC_KEY', 'SOCIAL_AUTH_OIDC_SECRET', 'SOCIAL_AUTH_OIDC_OIDC_ENDPOINT', 'SOCIAL_AUTH_OIDC_VERIFY_SSL']
|
||||
|
||||
|
||||
def remove_oidc_auth_conf(apps, scheme_editor):
|
||||
setting = apps.get_model('conf', 'Setting')
|
||||
setting.objects.filter(key__in=OIDC_AUTH_CONF_KEYS).delete()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
('conf', '0010_change_to_JSONField'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(remove_oidc_auth_conf),
|
||||
]
|
||||
Reference in New Issue
Block a user