-
Notifications
You must be signed in to change notification settings - Fork 317
@SubscriptionMapping missing AuthenticationPrincipal #861
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
Comments
same here. Server-side : @PreAuthorize("isAuthenticated()")
@SubscriptionMapping(value = "xxxx")
public Flux<xxx> xxx() {
return Flux.empty();
} When a client call : {"errors":[{"message":"Subscription error","locations":[],"extensions":{"classification":"INTERNAL_ERROR"}}]} "EDIT" Spring boot 3.2 : dependencies depends on java-graphql v21.3 |
Hello @madwind, @jma-9code Thanks for reporting this issue. I had a look at this problem and found out why this case is not working with Spring Boot 3.2.0. DescriptionRight now the
The problem here comes from a behavior combination between Spring for GraphQL's WorkaroundAs noted by @jma-9code, reverting to an older GraphQL Java version works around this problem. For now, downgrading your application to graphql-java 20.7 is the best course of action. Follow upI'm not entirely sure about the expected behavior here for EDIT: here's a link to the discussion. |
We have fixed this issue in |
When I upgrade from springboot 3.1.4 to 3.2 @SubscriptionMapping seemed to be missing AuthenticationPrincipal
@QueryMapping works fine.
but in 3.1.4 it works fine.
The text was updated successfully, but these errors were encountered: