From 1b9ca275865cc6ca7016bdee021f62a7d1f71356 Mon Sep 17 00:00:00 2001 From: Luci Furtun Date: Mon, 28 Oct 2019 21:58:15 +0200 Subject: [PATCH 1/3] Switch skeleton to APIKeyBackend as default auth backend --- colibris/skeleton/__packagename__/settings.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/colibris/skeleton/__packagename__/settings.py b/colibris/skeleton/__packagename__/settings.py index c197138..b67b985 100644 --- a/colibris/skeleton/__packagename__/settings.py +++ b/colibris/skeleton/__packagename__/settings.py @@ -38,11 +38,9 @@ class Meta: } AUTHENTICATION = { - 'backend': 'colibris.authentication.jwt.JWTBackend', + 'backend': 'colibris.authentication.apikey.APIKeyBackend', 'model': '__packagename__.models.User', - 'identity_claim': 'sub', - 'identity_field': 'username', - 'secret_field': 'password' + 'key_field': 'password', } AUTHORIZATION = { From 56a8974b2b802113009d8469423777d27ba65e54 Mon Sep 17 00:00:00 2001 From: Luci Furtun Date: Mon, 28 Oct 2019 22:00:02 +0200 Subject: [PATCH 2/3] Add apispec with version in install_requires --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 81d58e0..6dac4fe 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,8 @@ def find_version(): version=find_version(), install_requires=[ 'aiohttp>=3.5.0,<=3.5.4', - 'aiohttp-apispec>=1.0,<=1.3', + 'aiohttp-apispec>=1.5', + 'apispec>=3.0.0', 'async-timeout', 'marshmallow>=3.0.0b19,<=3.0.0rc7', 'marshmallow_peewee==2.3.0', From 99f68f49f4170c69183029979c4f2982cc9b5164 Mon Sep 17 00:00:00 2001 From: Luci Furtun Date: Mon, 28 Oct 2019 22:00:59 +0200 Subject: [PATCH 3/3] Bump version to 0.9.0 --- colibris/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colibris/__init__.py b/colibris/__init__.py index 380f994..709a980 100644 --- a/colibris/__init__.py +++ b/colibris/__init__.py @@ -14,7 +14,7 @@ from colibris import template -VERSION = '0.8.0' +VERSION = '0.9.0' def setup():