Skip to content

Api Authentication via QueryString? #216

@ComputerElite

Description

@ComputerElite

Would it be possible to authenticate on WebSockets by passing an ApiToken via query strings to the websocket url? The current WebSocket api in javascript doesn't allow for setting custom headers (https://stackoverflow.com/a/4361358) and thus making authentication impossible without a proxy.

Example: wss://api.openshock.app/1/hubs/user?OpenShockToken=<token>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Priority

    Low

    Effort

    Low

    Issue-Status

    Under Consideration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions