diff --git a/vitrage/middleware/keycloak.py b/vitrage/middleware/keycloak.py index 0097e3d1b..f7bf9fe33 100644 --- a/vitrage/middleware/keycloak.py +++ b/vitrage/middleware/keycloak.py @@ -23,7 +23,7 @@ from webob import exc OPENID_CONNECT_USERINFO = '%s/realms/%s/protocol/openid-connect/userinfo' KEYCLOAK_OPTS = [ - cfg.StrOpt('auth_url', default='http://127.0.0.1', + cfg.StrOpt('auth_url', default='http://127.0.0.1:9080/auth', help='Keycloak authentication server ip',), cfg.StrOpt('insecure', default=False, help='If True, SSL/TLS certificate verification is disabled'), diff --git a/vitrage/tests/functional/api/v1/test_keycloak.py b/vitrage/tests/functional/api/v1/test_keycloak.py index c6fac5d18..47587b51d 100644 --- a/vitrage/tests/functional/api/v1/test_keycloak.py +++ b/vitrage/tests/functional/api/v1/test_keycloak.py @@ -37,8 +37,8 @@ HEADERS = { 'X-Project-Id': 'my_realm' } -OPENID_CONNECT_USERINFO = 'http://127.0.0.1/realms/my_realm/protocol/' \ - 'openid-connect/userinfo' +OPENID_CONNECT_USERINFO = 'http://127.0.0.1:9080/auth/realms/my_realm/' \ + 'protocol/openid-connect/userinfo' USER_CLAIMS = { "sub": "248289761001",