From 45d7182d121d560b5437de584f34e65fbe58bff8 Mon Sep 17 00:00:00 2001 From: Justin Hynes Date: Fri, 12 Aug 2022 14:13:57 +0000 Subject: [PATCH] fix: Override Credentials service URLs in Studio devstack.py files In the `cms/envs/common.py` file the `CREDENTIALS_INTERNAL_SERVICE_URL` and `CREDENTIALS_PUBLIC_SERVICE_URL` settings are set to `http://localhost:8005` which is incorrect for devstack. In devstack the Credentials IDA runs on port `18150`. This causes issues with Studio being able to communicate with the Credentials IDA. I've overriden the service URL settings in devstack.py to point to the correct port. --- cms/envs/devstack.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index 2b1a429ca2..799b7b7e8c 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -291,6 +291,10 @@ SOCIAL_AUTH_REDIRECT_IS_HTTPS = False # Devstack is directly exposed to the caller CLOSEST_CLIENT_IP_FROM_HEADERS = [] +#################### Credentials Settings #################### +CREDENTIALS_INTERNAL_SERVICE_URL = 'http://localhost:18150' +CREDENTIALS_PUBLIC_SERVICE_URL = 'http://localhost:18150' + ################# New settings must go ABOVE this line ################# ######################################################################## # See if the developer has any local overrides.