@Override
    public AuthorizationResult evaluate(final AuthorizableResource resource, final AuthorizationRequest request) throws Throwable {
        this.jdbcTemplate = Objects.requireNonNullElseGet(this.jdbcTemplate, this::buildJdbcTemplate);
        val parameters = buildMapSqlParameterSource(request);
        return jdbcTemplate.query(query, parameters, rs -> {
            val result = rs.next() && rs.getBoolean("authorized");
            return AuthorizationResult.from(result);
        });
    }
This is {@link JdbcAuthorizationPolicy}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-heimdall/src/main/java/org/apereo/cas/heimdall/authorizer/resource/policy/JdbcAuthorizationPolicy.java