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_
Activity
Neirda24 commentedon May 24, 2024
I'd go even further. A
->forwardAuthenticatedUser()+->asUser(UserInterface $user)WDYT ?Jean-Beru commentedon May 24, 2024
->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.Neirda24 commentedon May 24, 2024
If you generate from a CLI you'll need this.
Jean-Beru commentedon May 24, 2024
Indeed
Neirda24 commentedon Jan 7, 2025
Partially done :
forwardCookie(string $name)was implemented in #89