Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
sanekagr2
Partner - Contributor III
Partner - Contributor III

Error in API URL call through Qlik Application Automation in SaaS

Hi everyone, 

I' trying to send a POST URL call via Qlik Application Automation:

https://qlik.dev/apis/rest/identity-providers/#post-v1-identity-pro

/v1/identity-providers

Body of the call:

{
    "protocol": "jwtAuth",
    "provider": "external",
    "description": "JWT Identity Provider",
    "tenantIds": ["ay...........oH"],
    "clockToleranceSec": 50,
    "options": {
        "issuer": "che............om",
        "jwtLoginEnabled": true,
        "staticKeys": [
            {
                "kid": "c........kid",
                "pem" "-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9.........c
rwIDANNN
-----END PUBLIC KEY-----":
            }
        ]
    }
}

I'm receiving a 400 error::

sanekagr2_0-1733643221084.png

The issue seems to be with the body, likely related to the PEM format.

How can I resolve this?

Thanks!

Labels (3)
1 Solution

Accepted Solutions
sanekagr2
Partner - Contributor III
Partner - Contributor III
Author

Thanks,

We removed the line breaks and used the same PEM value that worked in a regular REST request but didn’t work in the block URL.

In the end, we found a solution by configuring the IDP creation block.

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-creating-oidc-i...

View solution in original post

6 Replies
eyalnir_qlik
Partner - Creator II
Partner - Creator II

Hello @Daniele_Purrone 

Can you kindly advise on this matter ?

Thanks, 

Eyal 

 

Daniele_Purrone
Support
Support

Hi @sanekagr2 , you are mentioning a POST, but I see a GET method in the response. 
Can you share screenshots of the block (all tabs)?
Of course, you can obscure sensitive data.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
sanekagr2
Partner - Contributor III
Partner - Contributor III
Author

Hi @Daniele_Purrone,

Thank you for the response,

sanekagr2_1-1733821659603.png

sanekagr2_2-1733821846293.png

 

I'm sending the request using POST, but for some reason, the log shows an error with a GET method

 

Dave_Channon
Employee
Employee

If you're creating a JWT IdP, the trick is to strip line breaks - see an example posted at https://qlik.dev/examples/manage-examples/identity-provider-create/ in the JWT IdP box.

One other way of doing this to verify is creating it in the admin console & monitoring the request that gets sent to the API via developer tools.

sanekagr2
Partner - Contributor III
Partner - Contributor III
Author

Thanks,

We removed the line breaks and used the same PEM value that worked in a regular REST request but didn’t work in the block URL.

In the end, we found a solution by configuring the IDP creation block.

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-creating-oidc-i...

Daniele_Purrone
Support
Support

Good to know, thanks @sanekagr2 !

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.