aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2017-06-27 21:56:03 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2017-06-27 21:56:03 +0900
commitf35b7c767f432c46e21d874b23fa88f421b95d11 (patch)
tree93d5c625bc79574998ecaf4f83e71e61eefbf6b9
parentUpdated server requirements file (diff)
downloadelivepatch-f35b7c767f432c46e21d874b23fa88f421b95d11.tar.gz
elivepatch-f35b7c767f432c46e21d874b23fa88f421b95d11.tar.bz2
elivepatch-f35b7c767f432c46e21d874b23fa88f421b95d11.zip
Removed basic auth
-rw-r--r--elivepatch_server/resources/AgentInfo.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/elivepatch_server/resources/AgentInfo.py b/elivepatch_server/resources/AgentInfo.py
index 85a0e05..b8f08a5 100644
--- a/elivepatch_server/resources/AgentInfo.py
+++ b/elivepatch_server/resources/AgentInfo.py
@@ -17,16 +17,6 @@
from flask import Flask, jsonify, abort, make_response
from flask_restful import Api, Resource, reqparse, fields, marshal
-from flask_httpauth import HTTPBasicAuth
-
-auth = HTTPBasicAuth()
-
-#TODO make password auth to be same for all resource
-@auth.get_password
-def get_password(username):
- if username == 'elivepatch':
- return 'default'
- return None
agent_fields = {
'module': fields.String,
@@ -51,7 +41,6 @@ agents = agentinfo()
class AgentAPI(Resource):
- decorators = [auth.login_required]
def __init__(self):
self.reqparse = reqparse.RequestParser()