From a015ca9916494ba4b989bf90ebee0102598b9461 Mon Sep 17 00:00:00 2001 From: RamanjaneyuluIdavalapati Date: Thu, 19 Jul 2018 10:59:58 +0530 Subject: [PATCH] username to johndoe --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad629ac..cb42921 100644 --- a/README.md +++ b/README.md @@ -624,7 +624,7 @@ class Calc(object): raise Exception("No auth") # Or your logic return a + b -user_store = dict(username=dict(password='password')) +user_store = dict(johndoe=dict(password='password')) auth = BasicServerAuthenticator(user_store=user_store) api = API(auth=auth) api.register(Calc(), 'v1') @@ -643,7 +643,7 @@ Using authentication at client side. ```python from kwikapi import Client, BasicClientAuthenticator -auth = BasicClientAuthenticator(username='username', password='password') +auth = BasicClientAuthenticator(username='johndoe', password='password') c = Client('http://localhost:8818/api/', version='v1', auth=auth, protocol='json') print(c.add(a=10, b=10))