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 request attributes in WebGraphQlInterceptor #633

Closed
turboezh opened this issue Mar 13, 2023 · 0 comments
Closed

Access request attributes in WebGraphQlInterceptor #633

turboezh opened this issue Mar 13, 2023 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@turboezh
Copy link
Contributor

turboezh commented Mar 13, 2023

Hi.

I have an issue similar to #626, but I need to access request attributes (ServerRequest.attribute()/ ServletRequest.getAttribute()).

In details:
I need to parse an HTTP-header in a Filter attached to a Spring Security filter chain and create some context from that header. It affects not only /graphql endpoint, so it needs to be done in just one place (in a code) once per request - in a request Filter (I guess this is a right place).
So an idea is to put this context into request attributes, restore it in WebGraphQlInterceptor and re-put into a GraphQLContext. But WebGraphQlRequest does not expose those attributes.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 13, 2023
@rstoyanchev rstoyanchev self-assigned this Mar 13, 2023
@rstoyanchev rstoyanchev added this to the 1.1.3 milestone Mar 13, 2023
@rstoyanchev rstoyanchev added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 13, 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