Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have integrated an OAuth2 flow on my Qlik Sense Business tenant and I can successfully retrieve an access_token.
But I can't make it work when sending this token in Authorization Bearer header to get a csrf token which I aim to use it in my websocket connection later.
const response = await fetch(
'https://mytenant.eu.qlikcloud.com/api/v1/csrf-token',
{
method: 'GET',
credentials: 'include',
headers: {
Authorization: `Bearer ${accessToken}`,
},
},
);
It simply returns a 404 Not Found.
But I can use this very same token to fetch current user in
and it successfully gives me my user info.
What am I doing wrong? Or, is this an unsupported feature?
I also tried to include qlik-web-integration-id in my request header but no success either.
The error is misleading but basically the csrf-token endpoint does not support that authentication type, it's only meant for authentication through an interactive Identity Provider.
The error is misleading but basically the csrf-token endpoint does not support that authentication type, it's only meant for authentication through an interactive Identity Provider.