<token-realm name="OAuth2Realm" principal-claim="sub">
<!-- Introspection configuration for tenant1 -->
<oauth2-introspection
client-id="my-tenant1-client-id"
client-secret="keep_it_secret"
introspection-url="https://
tenant1-
as.example.com/token/introspect"
client-ssl-context="user-defined-ssl-context" host-name-verification-policy="ANY" />
<!-- Introspection configuration for tenant2 -->
<oauth2-introspection
client-id="my-tenant2-client-id"
client-secret="keep_it_secret"
introspection-url="https://
tenant2-
as.example.com/token/introspect"
client-ssl-context="user-defined-ssl-context" host-name-verification-policy="ANY" />
</token-realm>
It seems it is not currently supported.
Is there maybe a way I could extend Wildfly's implementation of the oauth2-instrospection mechanism ?