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
(cherry picked from commit c9f70bd2c2)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user