From a492b8fcbdc0e13bb842d6315bf7622966bc2382 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Mon, 27 Oct 2014 16:01:31 -0700 Subject: [PATCH] #84 - Fix regression with OAuth Notifications. --- samples/SocialSample/project.json | 3 ++- .../OAuthAuthenticationExtensions.cs | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/samples/SocialSample/project.json b/samples/SocialSample/project.json index 40f05e17c5..5be1930c00 100644 --- a/samples/SocialSample/project.json +++ b/samples/SocialSample/project.json @@ -18,5 +18,6 @@ }, "aspnetcore50": { } - } + }, + "webroot": "wwwroot" } diff --git a/src/Microsoft.AspNet.Security.OAuth/OAuthAuthenticationExtensions.cs b/src/Microsoft.AspNet.Security.OAuth/OAuthAuthenticationExtensions.cs index 55ac54ca65..3e4947de2b 100644 --- a/src/Microsoft.AspNet.Security.OAuth/OAuthAuthenticationExtensions.cs +++ b/src/Microsoft.AspNet.Security.OAuth/OAuthAuthenticationExtensions.cs @@ -31,6 +31,10 @@ namespace Microsoft.AspNet.Builder { configureOptions(options); } + if (options.Notifications == null) + { + options.Notifications = new OAuthAuthenticationNotifications(); + } }) { Name = authenticationType,