glassfishrobot
glassfishrobot
* **Issue Imported From:** https://github.com/javaee/security-soteria/issues/106 * **Original Issue Raised By:**@ggam * **Original Issue Assigned To:** Unassigned
@arjantijms Commented I'm not 100% sure if it's the creating, since both Decorators and Alternatives are supposed to work on the `Bean` that's added to the CDI runtime, not on...
@arjantijms Commented Btw, just thinking but because the code asks for all bean definitions, is a decorator or alternative even supposed to work? At least the alternative for the handler...
@ggam Commented I was using WildFly patched to used latest Weld for CDI 1.2 (2.4.4). I can't provide much more info right now but I'll try to create a reproducer...
@arjantijms Commented Ok, thx! If I try an alternative for a build-in mechanism (like, e.g. Basic), things do work: ```java @Alternative @Priority(1000) public class AlternativeMechanism implements HttpAuthenticationMechanism { @Override public...
@ggam Commented Here's a sample reproducer WAR: [example.zip](https://github.com/javaee-security-spec/soteria/files/1148241/example.zip) The alternative works for `HttpAuthenticationMechanism` as you said, but is ignored for the `IdentityStore`. Seems like the `beanReference = beanManager.getReference(bean, type, beanManager.createCreationalContext(bean));`...
@arjantijms Commented It may not be `beanManager.createCreationalContext(bean))` vs `CDI.select()`, but just the fact that multiple identity stores are being requested. If the `HttpAuthenticationMechanism` is part of the .war, then if...
@ggam Commented So do you have enough information to investigate it? Or do you want me to do something more? Just to explain my usecase: I now have a (WildFly)...
@ggam Commented Also, regarding the @Inject vs JNDI bean manager, I believe Antoine is thinking about a CDI 2.1 MR to be started relatively soon. This could be an item...
@arjantijms Commented >Also, regarding the @Inject vs JNDI bean manager, I believe Antoine is thinking about a CDI 2.1 MR to be started relatively soon. This could be an item...