diff --git a/galaxy_ng/app/management/commands/dump_auth_config.py b/galaxy_ng/app/management/commands/dump_auth_config.py index 8323b2f403..3cdf1da858 100644 --- a/galaxy_ng/app/management/commands/dump_auth_config.py +++ b/galaxy_ng/app/management/commands/dump_auth_config.py @@ -1,10 +1,10 @@ import json import os from django.core.management.base import BaseCommand -from galaxy_ng.app.models.config import Setting from django.conf import settings from dynaconf.utils import upperfy + class Command(BaseCommand): KEYCLOAK_AUTH_KEYS = [ "SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL", @@ -55,13 +55,17 @@ def format_config_data(self, type, keys, prefix): config["configuration"].update({k: v}) return config - def handle(self, *args, **options): try: data = [] # Add Keycloak auth config - data.append(self.format_config_data("keycloak", self.KEYCLOAK_AUTH_KEYS, "SOCIAL_AUTH_KEYCLOAK_")) + data.append( + self.format_config_data( + "keycloak", + self.KEYCLOAK_AUTH_KEYS, + "SOCIAL_AUTH_KEYCLOAK_"), + ) # Add LDAP auth config data.append(self.format_config_data("ldap", self.LDAP_AUTH_KEYS, "AUTH_LDAP_"))