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,