summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-03 19:08:31 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-03 19:08:31 +0100
commitc855883424d058e11feb55ae8d0cb0234c5d876a (patch)
treede0d243d841291be01b0e5b9a2ca6f7cd7716ba4
parentd1f890acedbe2d86182cef34b9d6c0f3be499d89 (diff)
downloaddeployment-c855883424d058e11feb55ae8d0cb0234c5d876a.tar.gz
deployment-c855883424d058e11feb55ae8d0cb0234c5d876a.tar.bz2
deployment-c855883424d058e11feb55ae8d0cb0234c5d876a.zip
Trying with Authz.
-rw-r--r--buildbot/master.cfg8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index bb09a71..908ea15 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -455,6 +455,12 @@ c["titleURL"] = "https://taler.net"
c["buildbotURL"] = "https://buildbot.taler.net/"
from taler_bb_userpass_db import USER_PASSWORD_DB
+from buildbot.www.authz import authz
+
+authz_cfg = authz.Authz(auth=util.UserPasswordAuth(USER_PASSWORD_DB),
+ forceBuild="auth",
+ cancelPendingBuild=True,
+ stopBuild=True)
# minimalistic config to activate new web UI
c["www"] = {
@@ -464,7 +470,7 @@ c["www"] = {
"console_view":{}},
"allowed_origins": ["https://*.taler.net"],
"avatar_methods": [],
- "auth": util.UserPasswordAuth(USER_PASSWORD_DB)}
+ "authz": authz_cfg}
####### DB URL