Skip to content

Commit

Permalink
Set network credentials - references #1941
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Oct 6, 2016
1 parent 9420714 commit 1ec71d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 3.21.3 - 06.10.2016
* BUGFIX: Set network credentials - https://github.com/fsprojects/Paket/issues/1941

#### 3.21.2 - 05.10.2016
* BUGFIX: Swapped parameters of FindVersionsForPackage

Expand Down
3 changes: 2 additions & 1 deletion src/Paket.Core/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ let internal addHeader (client:WebClient) (headerKey:string) (headerVal:string)
client.Headers.Add (headerKey, headerVal)
#endif

let inline createWebClient (url,auth:Auth option) =
let createWebClient (url,auth:Auth option) =
#if USE_HTTP_CLIENT
let handler =
new HttpClientHandler(
Expand Down Expand Up @@ -536,6 +536,7 @@ let inline createWebClient (url,auth:Auth option) =
//so use THIS instead to send credentials RIGHT AWAY
let credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password))
client.Headers.[HttpRequestHeader.Authorization] <- sprintf "Basic %s" credentials
client.Credentials <- new NetworkCredential(username,password)

| Some (Token token) ->
client.Headers.[HttpRequestHeader.Authorization] <- sprintf "token %s" token
Expand Down
4 changes: 2 additions & 2 deletions src/Paket/Paket.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<StartWorkingDirectory>D:\code\PaketKopie</StartWorkingDirectory>
<StartArguments>update -f</StartArguments>
<StartWorkingDirectory>D:\code\Paket\integrationtests\scenarios\i001117-aws\temp</StartWorkingDirectory>
<StartArguments>install</StartArguments>
<StartWorkingDirectory>D:\code\Paket\integrationtests\scenarios\i001270-net461\before</StartWorkingDirectory>
<StartArguments>update</StartArguments>
<StartWorkingDirectory>D:\temp\repo3</StartWorkingDirectory>
</PropertyGroup>
<PropertyGroup>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
Expand Down

0 comments on commit 1ec71d3

Please sign in to comment.