On Sat, Feb 25, 2023 at 4:13 PM Frédéric Nell <
nell.f...@gmail.com> wrote:
>
> Hello Wei :)
>
> Thanks for the link, I already saw all the examples but somehow we are building a super shrinkwrap archive with the whole application which call our EJB's.
If you can trim down the problem into a sample project it would be
helpful to analyse the problem.
>
> In our EJB's there's the Principal (java.security) who is in use.
>
> My Problem is that I tried to simulate a callback within the arquillian test in order to be able to log me in in our application security.
>
> But I didn't find any programmatic callback example for elytron. I can authenticate my tests users which set a token in our database, but the Principal is never set as @requestscoped.
I'm not sure I catch the meaning correctly. Currently it seems the
problems are mixed together: Arquillian + Elytron + REST client
request.
Maybe it's better to isolate the problems first. For example, run the
project outside Arquillian to see if the project works. If that's the
case, then analyze the problem inside the Arquillian managed
environment to see what's the difference. Because Arquillian itself
just wraps the project into WAR/EAR file and starts a WildFly server
to deploy the project, so there must be differences in the
environment. If there is a sample project I could better analyse the
problem.