File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ The relevant code for the Web API is in the `Startup.cs` class. We are using the
271271
272272 ```CSharp
273273 services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
274- . AddMicrosoftWebApi (Configuration );
274+ . AddMicrosoftIdentityWebApi (Configuration );
275275 ```
276276
2772772 . Validating the tokens
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public Startup(IConfiguration configuration)
2222 public void ConfigureServices ( IServiceCollection services )
2323 {
2424 services . AddAuthentication ( JwtBearerDefaults . AuthenticationScheme )
25- . AddMicrosoftWebApi ( Configuration ) ;
25+ . AddMicrosoftIdentityWebApi ( Configuration ) ;
2626
2727 services . AddControllers ( ) ;
2828 }
Original file line number Diff line number Diff line change 88
99 <ItemGroup >
1010 <PackageReference Include =" Microsoft.EntityFrameworkCore" Version =" 3.1.3" />
11- <PackageReference Include =" Microsoft.Identity.Web" Version =" 0.2.2 -preview" />
11+ <PackageReference Include =" Microsoft.Identity.Web" Version =" 0.3.0 -preview" />
1212 <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 3.1.2" />
1313 </ItemGroup >
1414
You can’t perform that action at this time.
0 commit comments