Skip to content

Commit 5cb2dd3

Browse files
committed
NTLM auth for schema request
1 parent 5a78fa1 commit 5cb2dd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SwaggerProvider.DesignTime/SwaggerProviderConfig.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ module private SwaggerProviderConfig =
5454
then Some (pair.[0],pair.[1])
5555
else None
5656
)
57-
Http.RequestString(schemaPathRaw, headers=headers)
57+
Http.RequestString(schemaPathRaw, headers=headers,
58+
customizeHttpRequest = fun req ->
59+
req.Credentials <- System.Net.CredentialCache.DefaultNetworkCredentials
60+
req)
5861
| false ->
5962
context.WatchFile schemaPathRaw
6063
schemaPathRaw |> IO.File.ReadAllText

0 commit comments

Comments
 (0)