Skip to content

Commit c9ab3fa

Browse files
committed
fix: add requires micronaut.secrurity.enabled to token interceptor (#16650)
1 parent 899d647 commit c9ab3fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

airbyte-api/commons/src/main/kotlin/io/airbyte/api/client/auth/KeycloakAccessTokenInterceptor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ private val logger = KotlinLogging.logger {}
2727
* `micronaut.security.oauth2.clients.keycloak.*` properties that this interceptor requires.
2828
*/
2929
@Singleton
30+
@Requires(property = "micronaut.security.enabled", value = "true")
3031
@Requires(property = "micronaut.security.oauth2.clients.keycloak.client-id", pattern = ".+")
3132
@Requires(property = "micronaut.security.oauth2.clients.keycloak.client-secret", pattern = ".+")
3233
@Requires(property = "micronaut.security.oauth2.clients.keycloak.openid.issuer", pattern = ".+")

0 commit comments

Comments
 (0)