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

Access cookies in WebGraphQlInterceptor #626

Closed
ddewaele opened this issue Mar 7, 2023 · 1 comment
Closed

Access cookies in WebGraphQlInterceptor #626

ddewaele opened this issue Mar 7, 2023 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@ddewaele
Copy link

ddewaele commented Mar 7, 2023

We would like to use a WebGraphQlInterceptor to access a cookie from the underlying http request but we didn't find a clean way to access the cookies.

The interceptor gives us a WebGraphQlRequest where we can access HttpRequest level elements like headers, uri but no clear way to access the cookies.

We can access the cookies using the Cookie HTTP header but that involves some parsing logic that we would like to avoid.

Is there a way to access the actual underlying HttpRequest so we can access the cookies directly ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 7, 2023
@rstoyanchev rstoyanchev added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 7, 2023
@rstoyanchev rstoyanchev added this to the 1.1.3 milestone Mar 7, 2023
@rstoyanchev
Copy link
Contributor

I'm afraid not. This is something that's missing at the moment.

@rstoyanchev rstoyanchev changed the title Access cookies in WebGraphQlInterceptor / WebGraphQlRequest Access cookies in WebGraphQlInterceptor Mar 7, 2023
@rstoyanchev rstoyanchev self-assigned this Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants