Rendering: Add support for renderer token

(cherry picked from commit a4f75cc0438712c90b02d24740416f8615e3a0cb)
This commit is contained in:
Joan López de la Franca Beltran
2022-08-11 15:39:06 +02:00
parent 1cf8d3e67c
commit 35dd260d6a
7 changed files with 78 additions and 45 deletions
+2
View File
@@ -42,6 +42,7 @@ func (rs *RenderingService) renderViaPlugin(ctx context.Context, renderKey strin
Timezone: isoTimeOffsetToPosixTz(opts.Timezone),
Domain: rs.domain,
Headers: headers,
AuthToken: rs.Cfg.RendererAuthToken,
}
rs.log.Debug("Calling renderer plugin", "req", req)
@@ -85,6 +86,7 @@ func (rs *RenderingService) renderCSVViaPlugin(ctx context.Context, renderKey st
Timeout: int32(opts.Timeout.Seconds()),
Timezone: isoTimeOffsetToPosixTz(opts.Timezone),
Headers: headers,
AuthToken: rs.Cfg.RendererAuthToken,
}
rs.log.Debug("Calling renderer plugin", "req", req)