According the example of JAASLoginInterceptor in fuse, the user and password
for basic auth will be configured in
fuse's etc\user.properties file like below.
the question is I want to use JAASLoginInterceptor for basic auth, but i
dont want to configure
user,password , role in fuse's user.properties file
could I configure them in blueprint.xml instead?

any hints will be more than welcome!

#
# This file contains the valid users who can log into Karaf. Each line have
to be of
# the format:
#
# USER=PASSWORD,ROLE1,ROLE2,...
#
# All users and roles entered in this file are available after Karaf startup
# and modifiable via the JAAS command group. These users reside in a JAAS
domain
# with the name "karaf"..
#
karaf=karaf,admin
 
    
    <bean id="authenticationInterceptor"
class="org.apache.cxf.interceptor.security.JAASLoginInterceptor">
        <property name="contextName" value="karaf"/>
    </bean>
    <jaxrs:server id="customerService" address="/securecrm">
        <jaxrs:serviceBeans>
            <ref component-id="customerSvc"/>
        </jaxrs:serviceBeans>
        <jaxrs:inInterceptors>
            <ref component-id="authenticationInterceptor"/>
        </jaxrs:inInterceptors>
       <jaxrs:providers >
            <bean
class="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider"/>
        </jaxrs:providers>

    </jaxrs:server>




--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-configure-org-apache-cxf-interceptor-security-JAASLoginInterceptor-tp5770414.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to