We have been using keycloak adapter with Wildlfy 26 and we added keycloak as a separate subsystem, security-realm and security-domain. It is working fine.
I know Wildfly 26+ now comes with elytron-oidc-client subsystem and thus there is no need for installing the keycloak adapter separately.
In our EAR file we have few WAR files. Some of them are web consoles and needs the OIDC's Keycloak redirect behaviour. While others are WAR files that exposes REST or SOAP APIs and these APIs support BASIC authentication. The users of these authentication also reside in keycloak.
For implementing the web console redirection, I can follow https://github.com/wildfly-security-incubator/elytron-examples/tree/main/simple-webapp-oidc
However, I am not clear on how to tackle the BASIC authentication. What I am looking for is https://github.com/wildfly-security-incubator/elytron-examples/tree/main/resteasy-client-integration but instead of authenticating the users against wildfly, I want it to be authenticated against keycloak.
If I can retrieve a bearer token using credentials obtained from Basic auth - it should also be fine.
Could you please help me on this? How I can achieve this w/o Keycloak adapter?
Thanks
Subijay