Skip to content

Commit

Permalink
Make sure all samples are using SecurityProtocolType.Tls12 properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrancis committed Apr 1, 2016
1 parent 015865f commit 049d409
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/ChargifyNetSample.MVC/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public ActionResult Index()
/// POST: /home/webhook
/// </summary>
/// <param name="model">The webhook event payload</param>
/// <param name="signature_hmac_sha_256"></param>
/// <returns>Applicable HttpStatusCode result</returns>
[HttpPost]
public ActionResult Webhook(WebhookEventData model, string signature_hmac_sha_256)
Expand Down
4 changes: 3 additions & 1 deletion Source/ChargifyNetSample.Web/App_Code/ChargifyBase.vb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Imports ChargifyNET
Imports System.Net
Imports ChargifyNET

Public Class ChargifyBase
Public Shared ReadOnly Property Chargify() As ChargifyConnect
Expand All @@ -8,6 +9,7 @@ Public Class ChargifyBase
chargifyConnect.Password = ConfigurationManager.AppSettings("CHARGIFY_API_PASSWORD")
chargifyConnect.URL = ConfigurationManager.AppSettings("CHARGIFY_SITE_URL")
chargifyConnect.SharedKey = ConfigurationManager.AppSettings("CHARGIFY_SHARED_KEY")
chargifyConnect.ProtocolType = SecurityProtocolType.Tls12
Return chargifyConnect
End Get
End Property
Expand Down
2 changes: 2 additions & 0 deletions Source/ChargifyNetSample.Web/Migrations/Configuration.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Imports System
Imports System.Data.Entity.Migrations
Imports System.Linq
Imports System.Net
Imports ChargifyNET
Imports Microsoft.AspNet.Identity
Imports Microsoft.AspNet.Identity.EntityFramework
Expand Down Expand Up @@ -110,6 +111,7 @@ Namespace Migrations
chargifyConnect.Password = ConfigurationManager.AppSettings("CHARGIFY_API_PASSWORD")
chargifyConnect.URL = ConfigurationManager.AppSettings("CHARGIFY_SITE_URL")
chargifyConnect.SharedKey = ConfigurationManager.AppSettings("CHARGIFY_SHARED_KEY")
chargifyConnect.ProtocolType = SecurityProtocolType.Tls12
Return chargifyConnect
End Get
End Property
Expand Down

0 comments on commit 049d409

Please sign in to comment.