quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.49k stars 2.6k forks source link

Some OIDC and smallrye-jwt beans are unremovable even if they are not used #39727

Open sberyozkin opened 5 months ago

sberyozkin commented 5 months ago

Describe the bug

@michalvavrik had a good point about some OIDC and smallrye-jwt beans being unremovable, for example, an OIDC token propagation JWT filter, smallrye-jwt producers, and there could be more in OIDC, OIDC Client and other OIDC extensions. It consumes extra memory and may cause side-effects

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

quarkus-bot[bot] commented 5 months ago

/cc @Ladicek (smallrye), @jmartisk (smallrye), @pedroigor (oidc), @phillip-kruger (smallrye), @radcortez (smallrye)

sberyozkin commented 5 months ago

For filters it may be required to check annotations like @JsonWebToken as well as @RegisterProvider(FilterClassName.class)