[JWT] Impossible test in JWT 1.1 TCK

24 views
Skip to first unread message

Arjan Tijms

unread,
Aug 17, 2018, 10:19:41 AM8/17/18
to Eclipse MicroProfile
Hi,

The JWT TCK contains the following test:


This is however impossible to pass in general. Principal is a proxy, and in CDI the only guarantee you have is that the proxy implements the type of the injection point. 

In others words, you can't do instanceof tests on the proxy for either types, and thus this test will never pass.

I propose removing this test.

Kind regards,
arjan

Arjan Tijms

unread,
Aug 21, 2018, 11:29:48 AM8/21/18
to Eclipse MicroProfile
I've created an issue for this as well so we can better track it. See https://github.com/eclipse/microprofile-jwt-auth/issues/103
Reply all
Reply to author
Forward
0 new messages