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

Pass options for aiohttp client (websockets) #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jegger
Copy link

@jegger jegger commented Oct 11, 2024

Hey,

This change allows to transparently passing aiohttp connection options to support cookie JWT-auth over websockets. We need it as we use Python to implement e2e test which covers our whole system. A part of that is to mimic a user (webbrowser) approaching NATS with a JWT in the cookie.

Is this something you're interested to have in this project? Or is there another, better way to get to my goal without modifying any code?
I am happy to adapt to a different style if required (e.g. passing only the JWT instead of all the options).

Thanks!

@caspervonb caspervonb self-requested a review October 15, 2024 18:01
@jegger jegger force-pushed the websocket-options branch from abacd05 to 2b07945 Compare October 22, 2024 09:06
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.

1 participant