Hi
I am trying to upgrade an application from WF 21 to 32. It's a single WAR where users authenticate using elytron's OIDC client (<auth-method>OIDC</auth-method> in web.xml). There are also a number of EJB timers and JBeret batch jobs, which can be triggered by the web users. The timers are annotated with @RunAs/@RunAsPrincipal and I have created an identity-realm with the appropriate user and role decoder which I added to the ApplicationDomain.
The problem I am facing is that the EJB timer user never gets the role I put into @RunAs because at [1] WF always tries to look up the user in the realm "virtual", which I cannot manipulate, i.e. it is not visible to the WF CLI.
Is there a way to make this work?
When I use jakarta.security.enterprise.authentication.mechanism.http.OpenIdAuthenticationMechanismDefinition the EJB timers run with the correct principal and roles.
Thanks and kind regards