Skip to content

Commit 602c522

Browse files
committed
auto-authenticate by uaa client env var
1 parent e7459df commit 602c522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

predix/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def _auto_authenticate(self):
2626
"""
2727
If we are in an app context we can authenticate immediately.
2828
"""
29-
client_id = os.environ.get('PREDIX_APP_CLIENT_ID')
30-
client_secret = os.environ.get('PREDIX_APP_CLIENT_SECRET')
29+
client_id = os.environ.get('PREDIX_SECURITY_UAA_CLIENT_ID')
30+
client_secret = os.environ.get('PREDIX_SECURITY_UAA_CLIENT_SECRET')
3131

3232
if client_id and client_secret:
3333
logging.info("Automatically authenticated as %s" % (client_id))

0 commit comments

Comments
 (0)