Browse Source
Merge pull request #54 from joshbode/netrc-ignore
Set session `auth` to trivial function to prevent usage of `.netrc` file
master
Marcos Pereira
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
keycloak/connection.py
|
|
@ -47,6 +47,7 @@ class ConnectionManager(object): |
|
|
|
self._timeout = timeout |
|
|
|
self._verify = verify |
|
|
|
self._s = requests.Session() |
|
|
|
self._s.auth = lambda x: x # don't let requests add auth headers |
|
|
|
|
|
|
|
# retry once to reset connection with Keycloak after tomcat's ConnectionTimeout |
|
|
|
# see https://github.com/marcospereirampj/python-keycloak/issues/36 |
|
|
|