Rendering: Add support for renderer token (#54425) (#54438)

(cherry picked from commit a4f75cc0438712c90b02d24740416f8615e3a0cb)
(cherry picked from commit 6ec06f66b9)
This commit is contained in:
Joan López de la Franca Beltran
2022-08-30 14:05:05 +02:00
committed by GitHub
parent d043d12427
commit 51fa81c419
7 changed files with 78 additions and 45 deletions
+2
View File
@@ -41,6 +41,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)
@@ -84,6 +85,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)