Skip to content

Commit

Permalink
Upgrade Microsoft.AspNetCore.All
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco committed Nov 22, 2017
1 parent 5157616 commit bd8feeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Bloggy/Bloggy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0-preview2-final" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.ResponseCompression" Version="2.0.0" />
<PackageReference Include="CommonMark.NET" Version="0.15.1" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/Bloggy/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ public void ConfigureServices(IServiceCollection services)
{
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
}).AddCookieAuthentication();
}).AddCookie();

services.AddMvc()
.AddRazorPagesOptions(options =>
{
options.AuthorizeFolder("/Account");
options.AllowAnonymousToPage("/Account/Login");
options.Conventions.AuthorizeFolder("/Account");
options.Conventions.AllowAnonymousToPage("/Account/Login");
});

services.Configure<RazorViewEngineOptions>(options =>
Expand Down

0 comments on commit bd8feeb

Please sign in to comment.