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 19:05:37 GMT
  The property realmName exist for the JAASAuthenticationFilter, but it is
not used to identify the JAAS Realm.  It does add the realm name to the http
response and karaf log file.

HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="myUserRealm"
Date: Thu, 02 Aug 2018 18:57:32 GMT
Content-Length: 0
Server: Jetty(9.4.6.v20170531)

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

Paul Spencer

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

View raw message