File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
4-WebApp-your-API/4-2-B2C/TodoListService Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ public void ConfigureServices(IServiceCollection services)
34
34
// JwtSecurityTokenHandler.DefaultMapInboundClaims = false;
35
35
36
36
// Adds Microsoft Identity platform (AAD v2.0) support to protect this Api
37
- services . AddAuthentication ( )
37
+ services . AddAuthentication ( JwtBearerDefaults . AuthenticationScheme )
38
38
. AddMicrosoftWebApi ( options =>
39
39
{
40
40
Configuration . Bind ( "AzureAdB2C" , options ) ;
41
41
42
42
options . TokenValidationParameters . NameClaimType = "name" ;
43
43
} ,
44
- options => { Configuration . Bind ( "AzureAdB2C" , options ) ; } ) ;
44
+ options => { Configuration . Bind ( "AzureAdB2C" , options ) ; } ) ;
45
45
46
46
services . AddControllers ( ) ;
47
47
services . AddAuthorization ( options =>
You can’t perform that action at this time.
0 commit comments