microsoft / microsoft/dev-tunnels
How to provide the token over WebSocket?
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 508
- Forks
- 52
- Avg merge
- 20h 6m
- Merged PRs (30d)
- 7
Description
When making a HTTP connection, according to the documentation, I can send the token in a header like X-Tunnel-Authorization: tunnel <TOKEN>.
Now, the normal WebSocket class has no way of sending any headers.
So, how can I provide this token on a WebSocket connection?
If this is not possible yet, may I request this as a feature?
Maybe something like wss://my-id-7095.euw.devtunnels.ms/?tunnel-token=token?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by checking the existing documentation for HTTP token authentication and the WebSocket connection behavior, then determine whether token authentication is supported; done means establishing and documenting a supported WebSocket token mechanism, or clearly defining the feature scope if it is not.
Written by the indexing model from the issue text.
Assessment
- Domain
- authentication, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100