Issue-ID: DOVETAIL-801
Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
Change-Id: I35b35773847ecc9175ca634cb9ae1a341c9c2eeb
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
response = requests.post('https://identity.linuxfoundation.org',
data=params, headers=headers)
+ response_text = response.content
+ if "unrecognized username or password" in response_text:
+ raises.Unauthorized(message.invalid_credentials())
resp = {'status': 'success'}
self.finish_request(resp)