Skip to content

Commit

Permalink
Add CAM Namespace as payload to auth request
Browse files Browse the repository at this point in the history
Solves #124
  • Loading branch information
MariusWirtz committed Dec 26, 2019
1 parent 347732b commit 0fc0c24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TM1py/Services/RESTService.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ def _build_authorization_token_cam(user=None, password=None, namespace=None, gat
raise RuntimeError(
"SSO failed due to missing dependency requests_negotiate_sspi.HttpNegotiateAuth. "
"SSO only supported for Windows")
response = requests.get(gateway, auth=HttpNegotiateAuth(), verify=verify)
response = requests.get(gateway, auth=HttpNegotiateAuth(), verify=verify,
params={"CAMNamespace": namespace})
if not response.status_code == 200:
raise RuntimeError(
"Failed to authenticate through CAM. Expected status_code 200, received status_code: "
Expand Down

0 comments on commit 0fc0c24

Please sign in to comment.