1
0
mirror of https://github.com/keycloak/keycloak.git synced 2026-10-23 19:29:23 +03:00
Files
Bernhard Strähle 7f9fb5877a Support injecting organizations in the test-framework
Previously, a RealmConfigInterceptor applied to every realm created within a test class, and it couldn't distinguish which realm it is decorating.

AbstractInterceptorHelper contains now an applies(..) filter that defaults to true, and Interception exposes the interceptor annotation, which is available whether or not the interceptor has been deployed. An interception that does not apply is skipped before it is applied, logged, or registered as a dependent of the intercepted instance. RealmConfigInterceptor exposes this as appliesTo(..).

Existing interceptors inherit the default and keep applying to every realm.

Closes #51751
Closes #51752

Signed-off-by: Bernhard Strähle <bernhard.straehle@gmail.com>
2026-10-12 12:05:50 +02:00
..
…