You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`QAToolKit.Source.Swagger` is a .NET library, which generates `IEnumerable<HttpRequest>` object that is the input for other components.
@@ -50,10 +50,29 @@ The above code is quite simple, but it needs some explanation.
50
50
#### 1. AddBasicAuthentication
51
51
If your Swagger.json files are protected by basic authentication, you can set those with `AddBasicAuthentication`.
52
52
53
-
#### 2. AddRequestFilters
53
+
#### 2. AddNTLMAuthentication
54
+
If your Swagger.json files are protected by Windows (NTLM) authentication, you can add it with `AddNTLMAuthentication`. There are two overrides which you can use.
thrownewArgumentNullException($"{nameof(userName)} is null.");
80
+
if(string.IsNullOrEmpty(password))
81
+
thrownewArgumentNullException($"{nameof(password)} is null.");
82
+
83
+
UseBasicAuth=false;
84
+
UseNTLMAuth=true;
85
+
UserName=userName;
86
+
Password=password;
87
+
returnthis;
88
+
}
89
+
90
+
/// <summary>
91
+
/// Add Default NTLM authentication which represents the authentication credentials for the current security context in which the application is running.
92
+
/// </summary>
93
+
/// <returns></returns>
94
+
publicSwaggerOptionsAddNTLMAuthentication()
95
+
{
96
+
UseBasicAuth=false;
97
+
UseNTLMAuth=true;
98
+
UserName=null;
99
+
Password=null;
100
+
returnthis;
101
+
}
102
+
61
103
/// <summary>
62
104
/// Use request filters
63
105
/// </summary>
@@ -66,7 +108,7 @@ public SwaggerOptions AddBasicAuthentication(string userName, string password)
0 commit comments