Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Embedding Pentaho/CTools dashboard in .NET web app

  1. #1

    Default Embedding Pentaho/CTools dashboard in .NET web app

    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.

  2. #2
    Join Date
    Apr 2012
    Posts
    253

    Default

    Are you using 5.2? The user/password was reintroduced in the url in 5.2. If you are using 5 or 5.1 it won't work.

  3. #3

    Default

    Thanks flamierd for your response. I am using 5.1.0.x. I will try 5.2.

    When running without CAS, I had to use WebClient (System.Net namespace in .NET) with user/password inserted as Credentials in the WebClient. The user=&password= query string didn't work for me.

    With CAS I was hoping I wont have to provide the user/password neither as WebClient API Credentials nor query string but for some reason it's not working. Also, when running under CAS my program is not expected to have the password since the authentication is handled by SSO.

    Thanks.

  4. #4

    Default

    Just an update on this, the getHeaders/getContent API doesn't work under CAS/SSO either.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.