Re: [Portletbridge-users] Portlet Bridge Question
Brought to you by:
dkfn
|
From: Neil L. <nei...@sc...> - 2009-06-15 02:09:52
|
Jamie, I got to thinking over the weekend about the limitations of the portlet that you informed about ....so I configured my squid server to auto authenticate (via login=user:password) to the site I want (my internal Nagios server) and configured squid to prompt for authentication (via openldap) When hitting squid with a browser, it prompts me for authentication and all is well, I'm forwarded to the Nagios home page When hitting squid with the portletBridge however, I receive; from the following config any ideas? is this the way proxy auth should be configured Regards and thanks Neil ----- Original Message ----- From: "Jamie McCrindle" <dk...@us...> To: "Neil Longmuir" <nei...@sc...> Sent: Friday, June 12, 2009 5:00:16 PM GMT -05:00 US/Canada Eastern Subject: Re: Portlet Bridge Question Hi Neil, Unfortunately it hasn't been written to do automatic authentication (http basic / digest, form)... the proxy authentication is for proxies rather than the site itself... You'd need to dig into code to get it to authenticate. I should be relatively easy to do but what held me back so far is: - which username / password should be used, most apps would want you to use credentials related to the user that is currently logged in but there isn't a standardized way to get hold of those credentials. In fact, most apps wouldn't even have the credentials because passwords are normally stored as hashes rather than the actual password. - form based authentication is not standardized... that said, it wouldn't be too difficult to cater for the common cases e.g. j_username, j_password, etc. The code to look at is: DefaultHttpClientTemplate regards, Jamie. On Fri, Jun 12, 2009 at 9:16 PM, Neil Longmuir<nei...@sc...> wrote: > Jamie, > > I realize your not support for this portlet but I can't find anything out > there wrt config on this portlet. Basically, I deployed the portlet on > webspace(liferay)/glassfish no problem and it works great for > non-authenticated websites. For authenticated websites however, I've tried a > myriad of configurations (see below) to no avail. > > > > > > In the configuration page for the portletbridge > http://www.portletbridge.org/configuration.html, there are details wrt > variables for straight authentication(mode [none, basic ..], username, > password), however I can't find where to set these. > > wondering if it's in a config file or I'm completely missing something. > > Best Regards > > Neil Longmuir > nei...@sc... > > > > > > |