Hello

Thanks JBO!

And traditional Pax Web 8 info - it's really close! I'm now working on
Karaf integration tests and I'm surprised how I don't have to do anything
to make existing tests work! What's more, I've ensured that all tests work
fine on Jetty, Tomcat and Undertow (instead of only on Jetty).
I've just added JAAS-related tests, so 3 kinds of external configuration
work fine:

 - ${karaf.etc}/jetty.xml:

<Configure id="Server">
  <Call name="addBean">
    <Arg>
      <New class="org.eclipse.jetty.jaas.JAASLoginService">
        <Set name="name">Test Realm</Set>
        <Set name="loginModuleName">karaf</Set>
        <Set name="roleClassNames">
          <Array type="java.lang.String">
            <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal</Item>
          </Array>
        </Set>
      </New>
    </Arg>
  </Call>
</Configure>

 - ${karaf.etc}/tomcat-server.xml

<Server port="8005" shutdown="SHUTDOWN" portOffset="42"
catalinaBase="target/tomcat">
  <Service name="Catalina">
    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.JAASRealm" appName="karaf"

userClassNames="org.apache.karaf.jaas.boot.principal.UserPrincipal"

roleClassNames="org.apache.karaf.jaas.boot.principal.RolePrincipal" />
    </Engine>
  </Service>
</Server>

 - ${karaf.etc}/undertow.xml

<undertow xmlns="urn:org.ops4j.pax.web:undertow:1.1"
xmlns:w="urn:jboss:domain:17.0">
  <security-realm name="default">
    <w:authentication>
      <w:jaas name="karaf" />
    </w:authentication>

<user-principal-class-name>org.apache.karaf.jaas.boot.principal.UserPrincipal</user-principal-class-name>

<role-principal-class-name>org.apache.karaf.jaas.boot.principal.RolePrincipal</role-principal-class-name>
  </security-realm>
</undertow>

I maintain a todo.txt file[1], where you can track my progress.

kind regards
Grzegorz Grzybek
===
[1]: https://github.com/ops4j/org.ops4j.pax.web/blob/main/todo.txt

wt., 24 sie 2021 o 15:17 Jean-Baptiste Onofré <j...@nanthrax.net> napisał(a):

> Hi guys,
>
> just to let you know that I will create new PRs tonight, and if Jenkins
> is happy, I will merge tomorrow.
>
> I will submit Karaf 4.3.3 to vote tomorrow night or Tuesday morning (my
> time).
>
> Regards
> JB
>
> On 16/08/2021 21:32, JB Onofré wrote:
> > Hi everyone
> >
> > Just to let you know that I’m preparing Karaf 4.3.3 release. I should be
> able to submit release to vote by the end of the week.
> >
> > I have identified required updates and fixes. I’m on it.
> >
> > I will keep you posted.
> >
> > Regards
> > JB
> >
>

Reply via email to