Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How can I integrate digest authentication within .NET and Pentaho?

  1. #1
    Join Date
    Jun 2013
    Posts
    10

    Red face How can I integrate digest authentication within .NET and Pentaho?

    I have tried to found example code/demo from internet about integrate login authentication within .NET and Pentaho but unluckily no solution found...
    For example I have a web portal website need to login before use so that I have a customize login page let user to login the portal:
    After I clicked Login button, the system will login to my web portal. The web portal include pentaho link. that mean I no need to login Pentaho again if I already login the web portal.

    Name:  login.jpg
Views: 193
Size:  11.6 KB

    Now the question is [how can I digest authenticate within .NET and pentaho when I login?]
    The successful scenario are:
    You will saw there is a Pentaho link in the above image


    1. When I click the Pentaho link, the Built-in Pentaho login page will prompt me to login if I do not Login by button.
    2. When I click the Pentaho link, the Pentaho will NOT prompt login page after I login the portal successfilly by button

    May I know any example code or direction that help me to integrate login authentication within .NET and pentaho
    Thanks in advance!

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    You will need to setup a single-sign-on solution. Pentaho uses Spring security for all authentication and authorization, so you should be able to integrate with either CAS or OpenID.

    For CAS, you will need to setup a CAS server somewhere in your environment and then configure both Pentaho and your own .NET application to use CAS as provider.

    For Pentaho, read the documentation on the Spring Security website.
    * http://static.springsource.org/sprin...gsecurity.html

    For .NET, find a client library, for instance these. There is no Spring Security port for .NET.

    * https://github.com/Jasig/dotnet-cas-client/
    * https://www.middleware.vt.edu/doku.p...:client:dotnet
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Jun 2013
    Posts
    10

    Default

    Thanks Taqua.
    I will try CAS later. But Before that, I want to try other method first before I go CAS, can you advice?


    I try to use basic authentication in VB.NET side to login Pentaho
    I use the default account of Pentaho for testing
    username: joe
    password: password

    I have following code in VB.NET



    Dim request = WebRequest.Create("http://10.145.1.151:8080/pentaho/Home")
    Dim authInfo As String = Convert.ToString(userName) & ":" & Convert.ToString(userPassword)
    authInfo = Convert.ToBase64String(Encoding.[Default].GetBytes(authInfo))
    request.Headers("Authorization") = "Basic " & authInfo
    Dim response As WebResponse = request.GetResponse()


    After the code ran the request.GetResponse() can get the successful result.So I think the Pentaho login and authentication successfully
    But when I go to http://10.145.1.151:8080/pentaho/Home Pentaho still prompt to Login Page…
    Do You know What wrong of my code?
    Thanks in advance!!

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.