<commit_before><blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
	xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
	xmlns:cxf="http://cxf.apache.org/blueprint/core" xmlns:authz="http://aries.apache.org/xmlns/authorization/v1.0.0"
	xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
	xmlns:sec="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
	http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
	http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd	
	http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/schemas/blueprint-ext/blueprint-ext.xsd
	http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
	http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
	http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">

	<authz:enable />

	<bean id="authenticationFilter" class="org.apache.cxf.jaxrs.security.JAASAuthenticationFilter">
		<property name="contextName" value="karaf" />
		<property name="realmName" value="TEST JAAS" />
		<!-- experimental feature -->
		<property name="useDoAs" value="true"/>
	</bean>

	<cxf:bus>
		<cxf:features>
			<cxf:logging />
			<!-- <bean class="org.apache.cxf.interceptor.security.JAASAuthenticationFeature"> 
				<property name="contextName" value="karaf" /> <property name="reportFault" 
				value="true" /> </bean> -->
		</cxf:features>
	</cxf:bus>

	<jaxrs:server id="echoResource" address="/echo">
		<jaxrs:serviceBeans>
			<bean class="com.fleurida.jaas.test.EchoServiceImpl" />
		</jaxrs:serviceBeans>
		<!-- this does not work with underlying cause outlined in http://karaf.922171.n3.nabble.com/Security-Subject-from-AccessControlContext-is-null-when-using-JAAS-and-CXF-JAASAuthenticationFilter-td4037821.html -->
		<jaxrs:providers>
			<ref component-id="authenticationFilter" />
		</jaxrs:providers>
	</jaxrs:server>

</blueprint><commit_msg>updated example but ran into CXF-6206<commit_after><blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
	xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
	xmlns:cxf="http://cxf.apache.org/blueprint/core" xmlns:authz="http://aries.apache.org/xmlns/authorization/v1.0.0"
	xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
	xmlns:sec="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
	http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
	http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd	
	http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/schemas/blueprint-ext/blueprint-ext.xsd
	http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
	http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
	http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">

	<authz:enable />

	<bean id="authenticationFilter" class="org.apache.cxf.jaxrs.security.JAASAuthenticationFilter">
		<property name="contextName" value="karaf" />
		<property name="realmName" value="TEST JAAS" />
		<!-- experimental feature -->
		<property name="useDoAs" value="true" />
	</bean>

	<cxf:bus>
		<cxf:inInterceptors>
			<bean class="org.apache.cxf.transport.http.HttpAuthenticationFaultHandler">
				<property name="realm" value="TEST JAAS" />
			</bean>
		</cxf:inInterceptors>
		<cxf:features>
			<cxf:logging />
			<bean class="org.apache.cxf.interceptor.security.JAASAuthenticationFeature"> 
				<property name="contextName" value="karaf" /> <property name="reportFault" 
				value="true" /> </bean>
		</cxf:features>
	</cxf:bus>

	<jaxrs:server id="echoResource" address="/echo">
		<jaxrs:serviceBeans>
			<bean class="com.fleurida.jaas.test.EchoServiceImpl" />
		</jaxrs:serviceBeans>
		<!-- this does not work with underlying cause outlined in http://karaf.922171.n3.nabble.com/Security-Subject-from-AccessControlContext-is-null-when-using-JAAS-and-CXF-JAASAuthenticationFilter-td4037821.html -->
		<!-- 
		<jaxrs:providers>
			<ref component-id="authenticationFilter" />
		</jaxrs:providers>
		 -->
	</jaxrs:server>

</blueprint>
{'fraction_non_alphanumeric': 0.18457071754458731, 'fraction_numerical': 0.019908751555371217, 'mean_word_length': 4.660798122065728, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 34}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '130521', 'n_tokens_mistral': 1922, 'n_tokens_neox': 1784, 'n_words': 167}