gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: auth simply based on the header


From: gnunet
Subject: [taler-bank] branch master updated: auth simply based on the header
Date: Thu, 28 Nov 2019 18:05:41 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new f710a0e  auth simply based on the header
f710a0e is described below

commit f710a0e7b08b564ab4892e6fac869824d277743f
Author: Florian Dold <address@hidden>
AuthorDate: Thu Nov 28 18:05:33 2019 +0100

    auth simply based on the header
---
 talerbank/app/views.py | 10 ----------
 1 file changed, 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:

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]