Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward cookie from request #35

Open
Jean-Beru opened this issue Apr 16, 2024 · 4 comments
Open

Forward cookie from request #35

Jean-Beru opened this issue Apr 16, 2024 · 4 comments
Assignees

Comments

@Jean-Beru
Copy link
Contributor

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 #33 (comment)

@Neirda24
Copy link
Contributor

I'd go even further. A ->forwardAuthenticatedUser() + ->asUser(UserInterface $user) WDYT ?

@Jean-Beru
Copy link
Contributor Author

->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
Copy link
Contributor

If you generate from a CLI you'll need this.

@Jean-Beru
Copy link
Contributor Author

If you generate from a CLI you'll need this.

Indeed

@Neirda24 Neirda24 self-assigned this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants