Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
bmclaughlin committed Feb 22, 2024
1 parent f18609e commit 7fbed1e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions galaxy_ng/app/management/commands/dump_auth_config.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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_"))
Expand Down

0 comments on commit 7fbed1e

Please sign in to comment.