I have a Pentaho BI server configured with CAS Single Sign-on. I want to embed the CDE dashboards in a .NET web application also running under CAS/SSO.
I am having issues with the getHeader/getContent APIs as I cannot get the content using HttpClient (System.Net.Http.HttpClient) or WebClient (System.Net.WebClient). I get an Unauthorized exception when trying to access the resource:
http://123.25.189.173:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/getHeaders?solution=&path=/home/admin/&file=abc01.wcdf&user=&password=&root=http://123.25.189.173:8080&inferScheme=True
The Single sign-on is working fine in this environment, since after logging in to my application through CAS, I can browse to PUC home page for that user.
When I try to get the header and content for a dashboard I see the error.
I tested my code on another Pentaho BI server, which was not configured under SSO. Over there I was using getHeader/getContent API on my .NET application server side and I was passing WebClient security credentials and i was able to get the required header and content to embed.
As expected after my embedded dashboard loaded, i had to provide a username /password for the other resources that request data from embedded code. For a prototype it was working fine.
Has anyone actually tried the embedding when both the application and Pentaho BI server were configured with CAS/SSO.
I am having issues with the getHeader/getContent APIs as I cannot get the content using HttpClient (System.Net.Http.HttpClient) or WebClient (System.Net.WebClient). I get an Unauthorized exception when trying to access the resource:
http://123.25.189.173:8080/pentaho/plugin/pentaho-cdf-dd/api/renderer/getHeaders?solution=&path=/home/admin/&file=abc01.wcdf&user=&password=&root=http://123.25.189.173:8080&inferScheme=True
The Single sign-on is working fine in this environment, since after logging in to my application through CAS, I can browse to PUC home page for that user.
When I try to get the header and content for a dashboard I see the error.
I tested my code on another Pentaho BI server, which was not configured under SSO. Over there I was using getHeader/getContent API on my .NET application server side and I was passing WebClient security credentials and i was able to get the required header and content to embed.
As expected after my embedded dashboard loaded, i had to provide a username /password for the other resources that request data from embedded code. For a prototype it was working fine.
Has anyone actually tried the embedding when both the application and Pentaho BI server were configured with CAS/SSO.