Allow to work in secure mode without certificate

If we are not working in insecure mode and certificate not
supplied we should work still in secured mode, because secure
mode can work even without certificate supplied (loaded to ca-store)

Change-Id: If3471fc8621a774a1f752cd6b84509e7128b0146
Closes-bug: #1720783
This commit is contained in:
Mike Fedosin 2017-10-02 15:32:59 +03:00
parent 016653cbdc
commit c9f70bd2c2
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def authenticate(**kwargs):
verify = None
if urllib.parse.urlparse(access_token_endpoint).scheme == "https":
verify = False if insecure else cacert
verify = False if insecure else cacert if cacert else True
body = {
'grant_type': 'password',