Skip to content
Browse files
[] Allow configuring multiple user credentials

Reviewed by Aakash Jain.

Allow configuring multiple user credentials for as we
did for in 246332@main. This also loads credentials
from passwords.json instead of environment variables.

* Tools/CISupport/build-webkit-org/master.cfg:

Canonical link:
git-svn-id: 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
ryanhaddad committed May 24, 2022
1 parent 197387a commit 7f90acb5f3e386b90e4c564b812540606b7cc14d
Showing 1 changed file with 5 additions and 6 deletions.
@@ -42,17 +42,16 @@ c['www']['ui_default_config'] = {

if not is_test_mode_enabled:
admin_username = load_password('ADMIN_USERNAME')
admin_password = load_password('ADMIN_PASSWORD')
if not admin_username or not admin_password:
print('\n\nERROR: Admin username/password missing from passwords.json.\n')
credentials = load_password('BUILD_WEBKIT_CREDENTIALS')
if not credentials:
print('BUILD_WEBKIT credentials not found. Please ensure BUILD_WEBKIT_CREDENTIALS is configured either in env variables or in passwords.json')
# See
authz = util.Authz(
auth = util.UserPasswordAuth({admin_username: admin_password})
auth = util.UserPasswordAuth(credentials)
c['www']['auth'] = auth
c['www']['authz'] = authz

0 comments on commit 7f90acb

Please sign in to comment.