View Full Version : How can I integrate digest authentication within .NET and Pentaho?

06-20-2013, 02:09 AM
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.

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

When I click the Pentaho link, the Built-in Pentaho login page will prompt me to login if I do not Login by button.
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! :)

06-20-2013, 06:03 AM
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/spring-security/site/docs/3.1.x/reference/springsecurity.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.php?id=middleware:cas:client:dotnet

06-20-2013, 07:25 AM
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("")
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 Pentaho still prompt to Login Pageā€¦
Do You know What wrong of my code?
Thanks in advance!!