Skip to content

JS function for advanced auth with options #6447

Description

@Mzack9999

Description

Multiple protocols supported in javascript requires specific and custom options to negotiate connection. Most of the current implementations accept basic authentication (username:password) but lack the capability to provide specific options.
The task is about investigating a generic solution for complex authenticated protocols. One possible approach could be implementing a generic auth method like the following one:

type ExtendedConnectOptions struct {
  Username string
  Password string
  ...
}

ConnectWithOptions(options *ExtendedConnectOptions)

Then refactoring existing methods to just use this more generic one and deprecating the existing connect methods recommending to use the new one.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementMost issues will probably ask for additions or changes.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions