Skip to content

Commit 5eccccb

Browse files
authored
Merge pull request #41 from weznagwama/master
Update startup.Auth.cs
2 parents 1fbde7c + 1b69cfc commit 5eccccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

TaskWebApp/App_Start/Startup.Auth.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public partial class Startup
4949
*/
5050
public void ConfigureAuth(IAppBuilder app)
5151
{
52+
// Required for Azure webapps, as by default they force TLS 1.2 and this project attempts 1.0
53+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
54+
5255
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
5356

5457
app.UseCookieAuthentication(new CookieAuthenticationOptions());

0 commit comments

Comments
 (0)