Is there a way to allow JWTs from multiple sources?
I have a REST API that I only allow access to via Bearer Tokens authentication, and I really only need to verify these tokens, so I don't really need all the additions that OIDC brings.
Let's say I have Keycloak set up as an Identity Provider. I would configure quarkous-oidc accordingly. But now I also want to allow JWTs that I create in another service, for service to service communication. This is not an identity provider, but i rather just use smallrye-jwt to create some "internal" tokens.
So it actually seems that I would rather use quarkus-smallrye-jwt, but I can't configure it for multiple tenants.
I think consolidating the keys in a JWKS and providing that to quarkus-smallrye-jwt would eventually work. But maybe there is a more elegant solution that I didn't see.