Injecting Mock JsonWebToken With Qualifiers #28532
-
According to the documentation here I should be able to do the following:
But when I try to run my integration tests I get errors like the following:
Could someone help me to understand the CORRECT way to inject a mock with qualifiers? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@InfoSec812 Have a look at https://quarkus.io/guides/security-openid-connect#integration-testing-security-annotation For example, see this test. |
Beta Was this translation helpful? Give feedback.
-
@InfoSec812, I see. |
Beta Was this translation helpful? Give feedback.
-
Wiremock OIDC server is used to replace a connection to the actual OIDC container, it does not provide any producers for JsonWebToken, for the OIDC specific solution use Or if I understand Martin's comment correctly, you need to add a |
Beta Was this translation helpful? Give feedback.
@InfoSec812 Have a look at https://quarkus.io/guides/security-openid-connect#integration-testing-security-annotation
For example, see this test.