File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ public class Authenticator
48
48
public static string ErrorMessageReqFailed = "Error while fetching access token from token service: " ;
49
49
50
50
public string Url { get ; set ; }
51
- public string Username { get ; private set ; }
52
- public string Password { get ; private set ; }
53
51
54
52
/// <summary>
55
53
/// Returns the authentication type associated with the Authenticator instance.
Original file line number Diff line number Diff line change @@ -438,8 +438,6 @@ private void SendMessages()
438
438
ws = new WebSocket ( URL ) ;
439
439
if ( Headers != null )
440
440
ws . CustomHeaders = Headers ;
441
- if ( Authentication != null )
442
- ws . SetCredentials ( Authentication . Username , Authentication . Password , true ) ;
443
441
ws . OnOpen += OnWSOpen ;
444
442
ws . OnClose += OnWSClose ;
445
443
ws . OnError += OnWSError ;
@@ -535,12 +533,6 @@ private async Task SendMessagesAsync()
535
533
{
536
534
MessageWebSocket webSocket = new MessageWebSocket ( ) ;
537
535
538
- if ( Authentication != null )
539
- {
540
- PasswordCredential credential = new PasswordCredential ( Authentication . Url , Authentication . Username , Authentication . Password ) ;
541
- webSocket . Control . ServerCredential = credential ;
542
- }
543
-
544
536
webSocket . MessageReceived += WebSocket_MessageReceived ;
545
537
webSocket . Closed += WebSocket_Closed ;
546
538
You can’t perform that action at this time.
0 commit comments