Skip to content

Need a means to pass TLS credentials to WebSocket #118

@chelliwell

Description

@chelliwell

I think, at a first quick look (cos I gotta get home soon!) - it maybe needs being able to get some ClientWebSocketOptions in, for instance, GraphQL.Client.Http.GraphQLHttpWebSocket.InitializeWebSocket() ...?
[I'm not familiar with .NET WebSockets]

Confirmed. If I add
nativeWebSocket.Options.ClientCertificates.Add(new X509Certificate2("My-cert-and-key.pfx", "mypassword"));
then the authentication succeeds. I think the websockets layers therefore need a way for the app to be able to pass these options down? (Possibly 'UseDefaultCredentials' too)

Originally posted by @chelliwell in #114 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions