karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Disabling authorization in Karaf webconsole
Date Wed, 07 Jan 2015 09:38:56 GMT
Hi Frank,

the authentication is defined in the WebConsole branding bundle.

In the branding OSGI-INF/blueprint/webconsole.xml, you can see:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"

     <cm:property-placeholder persistent-id="org.apache.karaf.webconsole">
             <cm:property name="realm" value="karaf"/>
             <cm:property name="role" value="admin"/>

     <bean id="securityProvider" 
         <property name="realm" value="${realm}"/>
         <property name="role" value="${role}"/>

     <service auto-export="interfaces" ref="securityProvider" />


Just remove this part to disable the authentication (removing the 
securityProvider service is enough).

However, it's not possible to disable it (I will create a Jira for 
that), so you have to tune the provided branding bundle.


On 01/07/2015 10:30 AM, Frank Lyaruu wrote:
> Hi Karaf,
> Is there an easy way to disable the Basic Auth for the webconsole? It
> conflicts with my own auth.
> I see that the plain Felix webconsole can be disabled by removing the
> username value:
> http://felix.apache.org/site/apache-felix-web-console.html
> but that does not really translate to the karaf web console, I've tried
> removing the role and realm setting.
> Any tips?
> regards, Frank

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message