Skip to content

Commit

Permalink
Added preemptive auth to work with keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjan.vilgo committed Jan 12, 2022
1 parent 389ee9f commit 6188ddb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EDX/MADES_SOAP_API.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, server, username="", password="", debug=False):
session = Session()
session.verify = False
session.auth = HTTPBasicAuth(username, password)
session.get(server) # Preemptive auth, needed for keycloak

transport = Transport(session=session)
self.history = HistoryPlugin()
Expand Down

0 comments on commit 6188ddb

Please sign in to comment.