Skip to content

Commit

Permalink
Revert "Added default keycloak env var for local"
Browse files Browse the repository at this point in the history
This reverts commit 4f6e5b9.
  • Loading branch information
snyaggarwal committed Nov 23, 2023
1 parent 4f6e5b9 commit f552f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,10 @@
DEFAULT_LOCALES_REPO_URI = os.environ.get('DEFAULT_LOCALES_REPO_URI', '/orgs/ISO/sources/iso639-1/')

# keyCloak/OIDC Provider settings
OIDC_SERVER_URL = os.environ.get('OIDC_SERVER_URL', 'http://localhost:8080')
OIDC_SERVER_URL = os.environ.get('OIDC_SERVER_URL', '')
OIDC_RP_CLIENT_ID = '' # only needed a defined var in mozilla_django_oidc
OIDC_RP_CLIENT_SECRET = '' # only needed a defined var in mozilla_django_oidc
OIDC_SERVER_INTERNAL_URL = os.environ.get('OIDC_SERVER_INTERNAL_URL', 'http://keycloak:8080') or OIDC_SERVER_URL
OIDC_SERVER_INTERNAL_URL = os.environ.get('OIDC_SERVER_INTERNAL_URL', '') or OIDC_SERVER_URL
OIDC_REALM = os.environ.get('OIDC_REALM', 'ocl')
OIDC_OP_AUTHORIZATION_ENDPOINT = f'{OIDC_SERVER_URL}/realms/{OIDC_REALM}/protocol/openid-connect/auth'
OIDC_OP_LOGOUT_ENDPOINT = f'{OIDC_SERVER_URL}/realms/{OIDC_REALM}/protocol/openid-connect/logout'
Expand Down

0 comments on commit f552f14

Please sign in to comment.