Skip to content

Commit

Permalink
Changed to FullFX 472
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Studer committed Nov 12, 2018
1 parent ee8926b commit 3c49e8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
7 changes: 3 additions & 4 deletions IdentityModelBindingIssue/Controllers/ValuesController.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace IdentityModelBindingIssue.Controllers
{
[Authorize]
[Route("api/[controller]")]
[ApiController]
public class ValuesController : ControllerBase
Expand Down
10 changes: 7 additions & 3 deletions IdentityModelBindingIssue/IdentityModelBindingIssue.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand All @@ -10,8 +10,12 @@

<ItemGroup>
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.6.0" />
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.4" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Xml" Version="2.1.3" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.3" />
</ItemGroup>

</Project>
11 changes: 1 addition & 10 deletions IdentityModelBindingIssue/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace IdentityModelBindingIssue
{
Expand Down Expand Up @@ -46,10 +39,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
}
else
{
app.UseHsts();
}

app.UseHttpsRedirection();
app.UseAuthentication();
app.UseMvc();
}
Expand Down

0 comments on commit 3c49e8d

Please sign in to comment.