Open Jean-Beru opened 7 months ago
I'd go even further. A ->forwardAuthenticatedUser()
+ ->asUser(UserInterface $user)
WDYT ?
->forwardAuthenticatedUser()
=> ->forwardAuthentication()
?
Is ->asUser(UserInterface $user)
needed ? I an user doesn't have access to a resource, it may not be allowed to generate the same resource in PDF.
If you generate from a CLI you'll need this.
If you generate from a CLI you'll need this.
Indeed
Add a
forwardCookie(string $name)
that would fetch a cookie from the request and send it to Gotenberg.It could be useful to authenticate Gotenberg when it tries to access to an URL.
_Originally posted by @Neirda24 in https://github.com/sensiolabs/GotenbergBundle/pull/33#discussion_r1565828062_