Registers the token_broker health check only when tokens are enabled (AuthentikQBitConfig.getTokensEnabled()). With tokens off it could only show UNKNOWN 'not configured' forever (core cannot remove a registered check). Other checks unchanged.
Tests: registrationWithTokensOffOmitsTokenBroker (failed before, passes after), registrationWithTokensOnKeepsTokenBroker. Local: ./mvnw verify -DskipITs, 626 tests green, Checkstyle/SpotBugs/PMD gates passed; contract ITs run in CI.
Registers the token_broker health check only when tokens are enabled (AuthentikQBitConfig.getTokensEnabled()). With tokens off it could only show UNKNOWN 'not configured' forever (core cannot remove a registered check). Other checks unchanged.
Tests: registrationWithTokensOffOmitsTokenBroker (failed before, passes after), registrationWithTokensOnKeepsTokenBroker. Local: ./mvnw verify -DskipITs, 626 tests green, Checkstyle/SpotBugs/PMD gates passed; contract ITs run in CI.
With AUTHENTIK_QBIT_TOKENS off the check could only ever report UNKNOWN
"not configured", and core has no way to remove a registered check, so the
health page showed a permanent UNKNOWN row. Register it only when
getTokensEnabled() is true; the other checks are unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Registers the token_broker health check only when tokens are enabled (AuthentikQBitConfig.getTokensEnabled()). With tokens off it could only show UNKNOWN 'not configured' forever (core cannot remove a registered check). Other checks unchanged.
Tests: registrationWithTokensOffOmitsTokenBroker (failed before, passes after), registrationWithTokensOnKeepsTokenBroker. Local: ./mvnw verify -DskipITs, 626 tests green, Checkstyle/SpotBugs/PMD gates passed; contract ITs run in CI.