karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Spencer <pau...@apache.org>
Subject Re: Looking for examples or suggestion relevant to Realm with JAX-RS,CXF Rest, and Karaf 4.2?
Date Thu, 02 Aug 2018 17:53:35 GMT
Fran├žois,
Adding the bean for class
org.apache.cxf.jaxrs.security.JAASAuthenticationFilter to the provider list
worked.

	<jaxrs:server id="sampleCrudRestServer" address="/SampleCrud">
		<jaxrs:serviceBeans>
			<ref component-id="sampleCrud" />
		</jaxrs:serviceBeans>
		<jaxrs:providers>
			<bean class="org.apache.cxf.jaxrs.security.JAASAuthenticationFilter">
				<property name="contextName" value="myUserRealm" />
				<property name="roleClassifier" value="ROLE_" />
			</bean>
			<bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
		</jaxrs:providers>
	</jaxrs:server>

Thank you,

Paul Spencer




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Mime
View raw message