Skip to content

Host with multiple transports having different auth types #328

Closed
@esso23

Description

@esso23

Hello,

I need to create a Host that has multiple transports having different types of authentication.
My case:

  • Transport at port 50000 using secure websocket with OAuth authentication (for public clients) - security
  • Transport at port 50001 using RawSocket transport using ticket authentication (for local clients) - speed

I tried using code from WampAuthenticationHost but I ended up with endless internal dependency chain (I gave up after copying more than dozen classes).

I just need to have 2 different RegisterTransport methods, one which uses CreateAuthenticationBinding (this one uses WampAuthenticationBinaryBinding, WampAuthenticationBinaryBinding and WampAuthenticationBinding which are all internal and have other internal dependencies) and one which does not.

I also tried to use implementation of WampHost and edit that but that's even worse, almost everything is internal.

Is there a simple way to do this? Or is it at least possible to make most of those things public?

Thanks
Esso

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