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

Use Authentication for allowing/blocking access #40

Open
junoriosity opened this issue Nov 3, 2022 · 1 comment
Open

Use Authentication for allowing/blocking access #40

junoriosity opened this issue Nov 3, 2022 · 1 comment
Assignees

Comments

@junoriosity
Copy link

I like the signaling server you provide at https://github.com/yjs/y-webrtc/blob/master/bin/server.js, yet I think it makes sense for me to provide it with some authorization depending on a provided JWT token within the request. I think I know that I would have to provide such a thing at https://github.com/yjs/y-webrtc/blob/master/bin/server.js#L127. However, I do not know when I call

const provider = new WebrtcProvider('your-room-name', ydoc, { password: 'optional-room-password' })

or so, where I can send the JWT token in the request.

It would be great if you could help me here.

@junoriosity
Copy link
Author

Would be great if I could get some support here, as I am not an expert on that matter 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants