Skip to main content

Suggest an Idea

Vote for your favorite Qlik product ideas and add your own suggestions.

Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS

Support of GET HTTP Method for SAML

wcalove
Contributor II
Contributor II

Support of GET HTTP Method for SAML

Via the API documentation when authentication through SAML only POST is support for API calls.  The full function of GET would help in our organizations ability to fully automate a CI/CD process via API calls 

5 Comments
wcalove
Contributor II
Contributor II

This request is for Qlik AEM to allow us to utilize the GET method when fetching tasks via the API. 

Shelley_Brennan
Former Employee
Former Employee

Can you provide a use case or example of why you would need this function?  Thank you.

Status changed to: Open - New
wcalove
Contributor II
Contributor II

Hi Shelly

We are requesting - 

Enhance API support to Get Login from QEM to empower SAML support with Okta.  Please see python example below which works in Active Directory but will not work with Okta/SAML.

def get_task_details(task_name, host_name, server_name, session_id):
# Exporting task json
head = get_auth_header(session_id)
base_url = get_base_url(host_name)
response = requests.get(base_url + server_name + '/tasks/' + task_name + '?action=export&withendpoints=true', headers=head, timeout=30, verify=certpath, stream=True)
if response.status_code == 200:
return response.json()
else:
raise Exception('For'+ task_name +'Export Failed - {0}'.format(response.text))

 

We need to be able to issue the GET request to export task JSON, change variables (e.g. object names, user/password, etc.) programmatically promote tasks to higher level environments (e.g. from Dev to Prod)

 

We want to use QEM API to promote a task from Dev to Prod automatically.

Per the documentation below, the current API only supports the Post method for SAML but the Get method is needed for to provide this functionality.

wcalove
Contributor II
Contributor II

Currently the above code works but we are going through AD. 

Shelley_Brennan
Former Employee
Former Employee

Thank you for the example.  You should be able to script something similar for SAML - you would just use POST for login (see https://help.qlik.com/en-US/enterprise-manager/November2020/Content/EnterpriseManager/EnterpriseMana... for an example) and then work with the API directly from there.  If you have any questions about this or run into any issues, open a case with Support and they should be able to guide you in modifying the script to work with SAML.

Status changed to: Closed - Already Available