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.
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:
Then refactoring existing methods to just use this more generic one and deprecating the existing connect methods recommending to use the new one.