summaryrefslogtreecommitdiff
path: root/ick_controller.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-07-21 11:45:29 +0300
committerLars Wirzenius <liw@liw.fi>2019-08-03 21:06:50 +0300
commit7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7 (patch)
treee52472ac9665bc21886ccf27b7a79e76079d6afe /ick_controller.py
parent4f2207571928dc685102e3b3ff55e79cd3d46b6d (diff)
downloadick2-7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7.tar.gz
Add: TokenGetter
Diffstat (limited to 'ick_controller.py')
-rw-r--r--ick_controller.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ick_controller.py b/ick_controller.py
index 62ccaef..7299e60 100644
--- a/ick_controller.py
+++ b/ick_controller.py
@@ -51,6 +51,8 @@ default_config = {
'auth-url': None,
'notify-url': None,
'apt-server': None,
+ 'client-id': None,
+ 'client-secret': None,
}
@@ -96,7 +98,9 @@ def main():
state = ick2.MuckStore(config['muck-url'])
- api = ick2.ControllerAPI(state)
+ getter = ick2.TokenGetter(config['client-id'], config['client-secret'])
+
+ api = ick2.ControllerAPI(state, getter)
api.set_apt_server(config['apt-server'])
api.set_artifact_store_url(config['artifact-store'])
api.set_auth_url(config['auth-url'])