Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkp committed Apr 3, 2017
1 parent c093a23 commit f941ec9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LetsEncrypt.SiteExtension.Core/KuduHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static KuduRestClient GetKuduClient(this WebSiteManagementClient client,
{
var user = client.WebApps.GetPublsihingCredentialSiteOrSlot(settings.ResourceGroupName, settings.WebAppName, settings.SiteSlotName);

return new KuduRestClient(settings.WebAppName, user.PublishingUserName, user.PublishingPassword);
return new KuduRestClient(settings, settings.WebAppName, user.PublishingUserName, user.PublishingPassword);
}
}
}
7 changes: 4 additions & 3 deletions LetsEncrypt.SiteExtension.Core/KuduRestClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using LetsEncrypt.SiteExtension.Models;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Net.Http;
Expand All @@ -15,12 +16,12 @@ public class KuduRestClient
private string publishingUserName;
private string webAppName;

public KuduRestClient(string webAppName, string publishingUserName, string publishingPassword)
public KuduRestClient(IAzureEnvironment azureEnvironment, string webAppName, string publishingUserName, string publishingPassword)
{
this.webAppName = webAppName;
this.publishingUserName = publishingUserName;
this.publishingPassword = publishingPassword;
this.baseUri = $"https://{this.webAppName}.scm.azurewebsites.net";
this.baseUri = $"https://{this.webAppName}.scm.{azureEnvironment.AzureWebSitesDefaultDomainName}";
this.client = new HttpClient();
client.BaseAddress = new System.Uri(baseUri);
client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", CreateToken());
Expand Down
2 changes: 1 addition & 1 deletion LetsEncrypt.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>letsencrypt</id>
<title>Azure Let's Encrypt (x86)</title>
<version>0.6.13</version>
<version>0.6.14</version>
<authors>SJKP</authors>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/sjkp/letsencrypt-siteextension</projectUrl>
Expand Down
2 changes: 1 addition & 1 deletion LetsEncrypt64.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>letsencrypt64</id>
<title>Azure Let's Encrypt (x64)</title>
<version>0.6.13</version>
<version>0.6.14</version>
<authors>SJKP</authors>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/sjkp/letsencrypt-siteextension</projectUrl>
Expand Down

0 comments on commit f941ec9

Please sign in to comment.