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
parent
commit
8b0bf74615
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      keycloak/connection.py

1
keycloak/connection.py

@ -47,6 +47,7 @@ class ConnectionManager(object):
self._timeout = timeout self._timeout = timeout
self._verify = verify self._verify = verify
self._s = requests.Session() 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 # retry once to reset connection with Keycloak after tomcat's ConnectionTimeout
# see https://github.com/marcospereirampj/python-keycloak/issues/36 # see https://github.com/marcospereirampj/python-keycloak/issues/36

Loading…
Cancel
Save