Hi,

Can you try with the Karaf default realm ?

regards,

François Papon
[email protected]

Le 02/08/2018 à 23:05, Paul Spencer a écrit :
> François,
>   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">
>               <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="realmName" value="myUserRealm" 
> /> 
>                               <property name="roleClassifier" value="ROLE_" />
>                       </bean>
>                       <bean 
> class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" />
>               </jaxrs:providers>
>       </jaxrs:server>
>
>
> Paul Spencer
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to