Does jenkinsapi support jenkins server with a SAML sso auth?
Jenkinsapi VERSION
0.3.9
Jenkins VERSION
2.124
SUMMARY
Our Jenkins server is using a SSO auth with SAML.
When using browser, I visit the jenkins website and get redirected to the sso page, after filling in username and password, I can see the jenkins page.
When using jenkinsapi in a python script, after I created J=Jenkins(url, name, password, ssl_verify=False), below error is shown:
ERROR:root:Inappropriate content found at https://xxx.com/api/python
Traceback (most recent call last):
File "/Users/whuang/test/jenkinsapi/env/lib/python3.7/site-packages/jenkinsapi/jenkinsbase.py", line 84, in get_data
return ast.literal_eval(response.text)
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 46, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
^
SyntaxError: invalid syntax
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
ISSUE TYPE
Does jenkinsapi support jenkins server with a SAML sso auth?
Jenkinsapi VERSION
0.3.9
Jenkins VERSION
2.124
SUMMARY
Our Jenkins server is using a SSO auth with SAML.
When using browser, I visit the jenkins website and get redirected to the sso page, after filling in username and password, I can see the jenkins page.
When using jenkinsapi in a python script, after I created
J=Jenkins(url, name, password, ssl_verify=False)
, below error is shown:The returned page is still the SSO web page.
EXPECTED RESULTS
ACTUAL RESULTS
USEFUL INFORMATION