cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Sisense Compose SDK and SSO Authentication

ziga
7 - Data Storage
7 - Data Storage

Hi all!

I am currently facing an issue while trying to visualize data on my dashboard using the Sisense Compose SDK in combination with SSO authentication (auth0). I have followed the guidelines provided in the following article to set up SSO with Auth0: Link to Article: Setting up SSO (SAML 2.0) with Auth0

Despite following the instructions in the article, I am unable to make it work as intended.

Here is the problem I am encountering:

  1. After successfully logging in to my application, I attempt to load data from Sisense using the SDK
  2. The SDK redirects me to the Sisense dashboard (because "/api/auth/isauth" responds with not authenticated)
  3. I am successfully logged into Sisense; however, I cannot access the data from my dashboard

Upon further investigation, I noticed that the issue appears to be related to the browser not sending all the necessary cookies when making the "/api/auth/isauth" request. This request consistently returns "isAuthenticated": false, even though I am logged in.

Best regards, Ziga

1 ACCEPTED SOLUTION

tuanpham
Sisense Team Member
Sisense Team Member

There is a feature introduced in L2021.3 that you may want to enable to allow redirects back to the application page. The flag is called newReturnToValidationBehavior, which is accessed from the internal Base Configuration page.

image (44).png

 

This flag exposes the Allowed Target URLs section in Security settings.
--

Below are steps to get to the internal Base Configuration:

  1. As a user with the System Admin role, navigate to Admin > search for and select System Management > click Configuration.
  2. Click the Sisense logo 5 times.
  3. From the left pane, select Base Configuration.

 

View solution in original post

3 REPLIES 3

tuanpham
Sisense Team Member
Sisense Team Member

Hi Ziga,

Yesterday we released a minor version of Compose SDK, 0.12.0, which includes a fix for SSO URL /api/auth/isauth. Can you upgrade to that version and get back to me if the issue still persists?

Thanks for using Compose SDK.

Tuan

---
Tuan Pham
Sisense – Staff Software Engineer

 

ziga
7 - Data Storage
7 - Data Storage

Hi Tuan,

I have tested the new version of the SDK, and there is some progress. It successfully passes the /api/auth/isauth request now. However, I'm encountering issues with any subsequent requests made to the API. 

  • Request to /api/activities?trc=sdk-ui-0.12.1 is returning a 401 Unauthorized response.
  • Request to /api/datasources/{my_datasource}/jaql?trc=sdk-ui-0.12.1 is also returning a 401 Unauthorized response.

I've checked the failing requests and noticed that the same cookie, which is sent with the /api/auth/isauth request, is being used with the failed requests.

Ziga

tuanpham
Sisense Team Member
Sisense Team Member

There is a feature introduced in L2021.3 that you may want to enable to allow redirects back to the application page. The flag is called newReturnToValidationBehavior, which is accessed from the internal Base Configuration page.

image (44).png

 

This flag exposes the Allowed Target URLs section in Security settings.
--

Below are steps to get to the internal Base Configuration:

  1. As a user with the System Admin role, navigate to Admin > search for and select System Management > click Configuration.
  2. Click the Sisense logo 5 times.
  3. From the left pane, select Base Configuration.