From f6a3938901d3d92e4a6d0f03250b042ad3e36fbe Mon Sep 17 00:00:00 2001 From: lennyaiko Date: Thu, 3 Apr 2025 17:04:39 +0100 Subject: [PATCH] progress on jwt --- app/api/schemas/authorization.py | 6 ++++++ app/api/services/authorization.py | 0 app/swagger/digifi_swagger.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/api/schemas/authorization.py create mode 100644 app/api/services/authorization.py diff --git a/app/api/schemas/authorization.py b/app/api/schemas/authorization.py new file mode 100644 index 0000000..785dd2b --- /dev/null +++ b/app/api/schemas/authorization.py @@ -0,0 +1,6 @@ +from marshmallow import Schema, fields + + +class AuthorizeRequestSchema(Schema): + username = fields.Str(required=True) + password = fields.Str(required=True) diff --git a/app/api/services/authorization.py b/app/api/services/authorization.py new file mode 100644 index 0000000..e69de29 diff --git a/app/swagger/digifi_swagger.json b/app/swagger/digifi_swagger.json index c573cfb..5ed7133 100644 --- a/app/swagger/digifi_swagger.json +++ b/app/swagger/digifi_swagger.json @@ -80,7 +80,7 @@ }, { "name": "Authorize", - "description": "This new feature will be used for authorizing customers.", + "description": "This feature will be used for authorizing customers.", "externalDocs": { "description": "Find out more", "url": "https://www.simbrellang.net"