From 224afe3b367cba9b978115e969e714c14c71caa6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 24 Apr 2018 17:03:17 +0300 Subject: Change: GET /work, POST /worker use access token to identify worker --- ick2/exceptions.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ick2/exceptions.py') 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 -- cgit v1.2.1