summaryrefslogtreecommitdiff
path: root/talerbank
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-11-28 18:05:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-11-28 18:05:33 +0100
commitf710a0e7b08b564ab4892e6fac869824d277743f (patch)
tree46a577889aa7c0322557c82527c6bfe9e18c7bd6 /talerbank
parent847c96c9cd2c3da2eaf4cd300b82b0f8b8fb877a (diff)
downloadbank-f710a0e7b08b564ab4892e6fac869824d277743f.tar.gz
bank-f710a0e7b08b564ab4892e6fac869824d277743f.tar.bz2
bank-f710a0e7b08b564ab4892e6fac869824d277743f.zip
auth simply based on the header
Diffstat (limited to 'talerbank')
-rw-r--r--talerbank/app/views.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 9199cf7..e70fe88 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -791,16 +791,6 @@ def auth_and_login(request):
"""Return user instance after checking authentication
credentials, False if errors occur"""
- auth_type = None
- if request.method in ["POST", "PUT"]:
- data = json.loads(request.body.decode("utf-8"))
- auth_type = data["auth"]["type"]
- if request.method == "GET":
- auth_type = request.GET.get("auth")
- if auth_type != "basic":
- LOGGER.error("auth method not supported")
- raise LoginFailed("auth method not supported")
-
username = request.META.get("HTTP_X_TALER_BANK_USERNAME")
password = request.META.get("HTTP_X_TALER_BANK_PASSWORD")
if not username or not password: