diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-24 17:03:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-25 19:07:44 +0300 |
commit | 224afe3b367cba9b978115e969e714c14c71caa6 (patch) | |
tree | 89f578874c9e75b6ebb93f46f5ecddfb8d94adf0 /ick2/exceptions.py | |
parent | df60c28287900478ced251123c9887e61e0dc17c (diff) | |
download | ick2-224afe3b367cba9b978115e969e714c14c71caa6.tar.gz |
Change: GET /work, POST /worker use access token to identify worker
Diffstat (limited to 'ick2/exceptions.py')
-rw-r--r-- | ick2/exceptions.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ick2/exceptions.py b/ick2/exceptions.py index 7105c3c..8a5447d 100644 --- a/ick2/exceptions.py +++ b/ick2/exceptions.py @@ -1,4 +1,4 @@ -# Copyright (C) 2017 Lars Wirzenius +# Copyright (C) 2017-2018 Lars Wirzenius # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -30,6 +30,12 @@ class BadUpdate(IckException): super().__init__('Work update is BAD: {}'.format(how)) +class ClientIdMissing(IckException): + + def __init__(self): + super().__init__('Access token is missing "aud"') + + class MethodNotAllowed(IckException): pass |