From 5cca61e37ab03a549fe504c25c58f7f6659e45f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-=C3=89ric?= Date: Thu, 19 Sep 2019 14:53:04 -0400 Subject: [PATCH 1/3] Update authenticators to catch Forbidden exception (#133) --- flask_rebar/rebar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_rebar/rebar.py b/flask_rebar/rebar.py index 72167790..becf9594 100644 --- a/flask_rebar/rebar.py +++ b/flask_rebar/rebar.py @@ -125,7 +125,7 @@ def wrapped(*args, **kwargs): try: authenticator.authenticate() break # Short-circuit on first successful authentication - except errors.Unauthorized as e: + except (errors.Unauthorized, errors.Forbidden) as e: first_error = first_error or e else: raise first_error or errors.Unauthorized From dacbd6ae503032f2505f2435aeca525552fe00e7 Mon Sep 17 00:00:00 2001 From: Rick Riensche Date: Thu, 19 Sep 2019 12:45:13 -0700 Subject: [PATCH 2/3] =?UTF-8?q?Bump=20version:=201.10.1=20=E2=86=92=201.10?= =?UTF-8?q?.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 462fed3b..ec28c2d1 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.10.1 +current_version = 1.10.2 commit = True tag = True diff --git a/setup.py b/setup.py index 1f530abd..4a73b22a 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ if __name__ == "__main__": setup( name="flask-rebar", - version="1.10.1", + version="1.10.2", author="Barak Alon", author_email="barak.s.alon@gmail.com", description="Flask-Rebar combines flask, marshmallow, and swagger for robust REST services.", From 075d1bfccd96beb4dcb7996d1fd87f8d33b6d1ec Mon Sep 17 00:00:00 2001 From: Rick Riensche Date: Thu, 19 Sep 2019 12:46:14 -0700 Subject: [PATCH 3/3] @cosmetic - changelog --- CHANGELOG.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f82fb484..2e502c33 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,14 @@ Changelog ========= +v1.10.2 (2019-09-19) +-------------------- + +Fix +~~~ +- Update authenticators to catch Forbidden exception (#133) [Marc-Éric] + + v1.10.1 (2019-09-19) --------------------