summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/cmd
diff options
context:
space:
mode:
authorrohitsakala <rohitsakala@gmail.com>2017-02-16 13:22:05 +0530
committerRohit Sakala <rohitsakala@gmail.com>2017-02-21 19:32:25 +0000
commitdab82680003368d358df501fddc5a8c03561664e (patch)
treeb8c9c30c3955105052e9d792c36a09f3043b8472 /testapi/opnfv_testapi/cmd
parentfd9becfdd2ac98ad55541987a2104ab46ca8fc99 (diff)
Add token based authentication for post/update/delete
As the mongodb database is not so secure today, this has been added. The token is stored in the mongoDB database. For now, authenticate variable is set false so that there would be no problem in accessing the databse by jenkins jobs. JIRA: FUNCTEST-730 Change-Id: I12b3907d650fc63efbdb031ebf3dd09519750109 Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/cmd')
-rw-r--r--testapi/opnfv_testapi/cmd/server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/cmd/server.py b/testapi/opnfv_testapi/cmd/server.py
index 3e0484f..013ee66 100644
--- a/testapi/opnfv_testapi/cmd/server.py
+++ b/testapi/opnfv_testapi/cmd/server.py
@@ -57,6 +57,7 @@ def make_app():
url_mappings.mappings,
db=db,
debug=CONF.api_debug_on,
+ auth=CONF.api_authenticate_on
)