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

Make session security context available for both WebSocket protocols #1313

Merged
merged 2 commits into from Nov 9, 2022

Conversation

HuseinJ
Copy link
Contributor

@HuseinJ HuseinJ commented Nov 9, 2022

Pull request checklist

  • Please read our contributor guide
  • Consider creating a discussion on the discussion forum
    first
  • Make sure the PR doesn't introduce backward compatibility issues
  • Make sure to have sufficient test cases

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

Initial Issue see: #814 - This fixes a bug where we do not receive the SecurityContext when using WebsocketGraphQlTransportWSProtocoll. The logic which is used in WebsocketGraphQLWSProtocolHandler where the SecurityContext is loaded from the session, should be called regardless of which protocol is used. So i moved the logic up again to DgsWebSocketHandler where it was before so it gets called

Alternatives considered

@HuseinJ HuseinJ changed the title make session security context available for both websocket protocols Make session security context available for both websocket protocols Nov 9, 2022
@HuseinJ HuseinJ changed the title Make session security context available for both websocket protocols Make session security context available for both WebSocket protocols Nov 9, 2022
Copy link
Contributor

@srinivasankavitha srinivasankavitha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes!

@srinivasankavitha srinivasankavitha merged commit 19a4eb6 into Netflix:master Nov 9, 2022
@kdby-io
Copy link

kdby-io commented Nov 24, 2022

Does this also work with ReactiveSecurityContextHolder for webflux?

@HuseinJ
Copy link
Contributor Author

HuseinJ commented Nov 24, 2022

@scon-io I think it should work. Unfortunately these changes are not released yet - You could try it out by building it locally.

@srinivasankavitha
Copy link
Contributor

srinivasankavitha commented Nov 26, 2022 via email

@HuseinJ
Copy link
Contributor Author

HuseinJ commented Nov 27, 2022

@srinivasankavitha Thank you very much for the info :-) I'm happy to hear that this will soon be released 😄

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

Successfully merging this pull request may close these issues.

None yet

3 participants