Skip to content

Forward cookie from request  #35

Open

Description

@Jean-Beru

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)

Activity

  1. Neirda24 commented on May 24, 2024

    @Neirda24
    Contributor

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

  2. Jean-Beru commented on May 24, 2024

    @Jean-Beru
    ContributorAuthor

    ->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.

  3. Neirda24 commented on May 24, 2024

    @Neirda24
    Contributor

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

  4. Jean-Beru commented on May 24, 2024

    @Jean-Beru
    ContributorAuthor

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

    Indeed

  5. self-assigned this
    on Jul 2, 2024
  6. Neirda24 commented on Jan 7, 2025

    @Neirda24
    Contributor

    Partially done : forwardCookie(string $name) was implemented in #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions