Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
/api/v1/users/me Returns 301 → “Connection Lost” ErrorWe are embedding a Qlik Sense dashboard using the <qlik-embed> web component and authenticating via OAuth.
The OAuth flow works correctly, and we are able to retrieve the access token from:
POST /oauth/tokenHowever, when the embedded dashboard loads, we consistently receive the “Connection lost. Make sure that Qlik Sense is running properly” error in the UI.
In the browser network logs, the request to:
GET /api/v1/users/mereturns 301 Moved Permanently, instead of 200.
Because of the redirect, the Qlik embed client fails to establish the session, and the dashboard does not load.
OAuth is configured correctly.
The app ID and sheet ID are valid.
The dashboard is shared with the appropriate space.
The user exists in the space.
Allowed Origins are configured in OAuth Client.
Our domain is added to CSP → Trusted Origins.
The only failing call is /api/v1/users/me, returning 301.
No mixed HTTP/HTTPS calls.
Using the <qlik-embed ui="classic/app"> component.
What conditions cause /api/v1/users/me to return a 301 redirect during OAuth-based embedding?
Is this expected behavior in certain tenant configurations?
Does the recent Qlik Cloud identity/authentication update (referenced in the changelog) introduce stricter redirect behavior or URL canonicalization that would impact OAuth embedding?
Is there a requirement that the tenant must be accessed using the exact canonical region-based domain for OAuth embeds to work (e.g., <tenant>.<region>.qlikcloud.com)?
Is there any known issue where the Identity Provider or CSP configuration can trigger an unexpected redirect from the /users/me endpoint?
What is the recommended approach to prevent or handle this redirect so that the embed component can successfully establish the session?
Screenshot of the 301 response for /api/v1/users/me.
Screenshot of the “Connection lost” error.
Hey @HimabinduBunga 301 response code is not the root cause of the issue. I've just tested a qlik-embed + Oauth process and that API call is part of the authorization process. There is a redirection behind that API so it is ok from my point of view.
I'd like to see your code where you are defining the qlik-embed host config configuration, your callback html page and your qlik-embed html tag, plus your OAuth client configuration from MC. Can you please share this?