Proxy portlet basic authentication

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Proxy portlet basic authentication

vince73_2
Hi, I have configured my orbeon server to work with tomcat basic authentication by modifiying web.xml as follow :


<security-constraint>
        <web-resource-collection>
            <web-resource-name>Form Builder + Form Runner Summary</web-resource-name>
            <url-pattern>/fr/orbeon/builder/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>administrator</role-name>
        </auth-constraint>
    </security-constraint>

<login-config>
    <auth-method>BASIC</auth-method>
</login-config>

When I try to access to /fr/orbeon/builder, the browser ask me the username and the password.


Im wondering if there  is a way to configure the OrbeonProxyPortlet to use Basic Authentication.

I tried to set the following parameters "oxf.http.proxy.username" and "oxf.http.proxy.password" in portlet.xml but it doesn"t work.


Have you an idea?


Thank you!
vbr
Reply | Threaded
Open this post in threaded view
|

Re: Proxy portlet basic authentication

vbr
UP, thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Proxy portlet basic authentication

Erik Bruchez
Administrator
> Im wondering if there  is a way to configure the OrbeonProxyPortlet to use Basic Authentication.

You should be able to set the following in portlet.xml:

        <init-param>
            <name>form-runner-url</name>
            <value>http://username:password@localhost:8080/orbeon/</value>
        </init-param>

Where you set `username` and `password` to your BASIC auth user information.

This aside, the `oxf.http.proxy.username` and `oxf.http.proxy.password` properties are unrelated to the proxy portlet. They are there to configure an HTTP proxy for Form Runner.

-Erik
vbr
Reply | Threaded
Open this post in threaded view
|

Re: Proxy portlet basic authentication

vbr
Thanks! Now I can connect to orbeon.
Reply | Threaded
Open this post in threaded view
|

Re: Proxy portlet basic authentication

Erik Bruchez
Administrator
Excellent, thanks for confirming that this is working!

-Erik