@@ -25,9 +25,7 @@ public void AddRoutes(IEndpointRouteBuilder app)
2525 var groupApp = app
2626 . MapGroup ( RoutePrefix )
2727 . WithTags ( TagName )
28- . WithGroupName ( ApiHelper . GroupVertical )
29- . DisableAntiforgery ( )
30- . WithOpenApi ( ) ;
28+ . WithGroupName ( ApiHelper . GroupVertical ) ;
3129
3230
3331 groupApp . MapPost ( "/login" ,
@@ -36,9 +34,9 @@ public void AddRoutes(IEndpointRouteBuilder app)
3634 HttpContext httpContext ,
3735 IHostEnvironment environment ,
3836 IConfiguration configuration ,
39- CancellationToken token ) =>
37+ CancellationToken ct ) =>
4038 {
41- var response = await sender . Send ( command , token ) ;
39+ var response = await sender . Send ( command , ct ) ;
4240 var clientType = httpContext . TryParseClientType ( )
4341 . ConvertToEnum ( ) ;
4442
@@ -63,11 +61,11 @@ public void AddRoutes(IEndpointRouteBuilder app)
6361 HttpContext httpContext ,
6462 IHostEnvironment environment ,
6563 IConfiguration configuration ,
66- CancellationToken token ) =>
64+ CancellationToken ct ) =>
6765 {
6866 var refreshTokenSignature =
6967 httpContext . TryParseRefreshTokenSignature ( environment ) ;
70- var response = await sender . Send ( new RefreshTokenCommand ( refreshTokenSignature ) , token ) ;
68+ var response = await sender . Send ( new RefreshTokenCommand ( refreshTokenSignature ) , ct ) ;
7169 var clientType = httpContext . TryParseClientType ( )
7270 . ConvertToEnum ( ) ;
7371
@@ -87,19 +85,19 @@ public void AddRoutes(IEndpointRouteBuilder app)
8785
8886
8987 groupApp . MapGet ( "/state" ,
90- async ( ISender sender , CancellationToken token ) =>
88+ async ( ISender sender , CancellationToken ct ) =>
9189 {
92- var identity = await sender . Send ( new GetIdentityStateQuery ( ) , token ) ;
90+ var identity = await sender . Send ( new GetIdentityStateQuery ( ) , ct ) ;
9391 return TypedResults . Ok ( identity ) ;
9492 } )
9593 . Authorize ( UserRole . User )
9694 . WithDescription ( "This endpoint is used to get the current user state." ) ;
9795
9896
9997 groupApp . MapPatch ( "/password/force" ,
100- async ( ISender sender , UpdatePasswordForcedCommand command , CancellationToken token ) =>
98+ async ( ISender sender , UpdatePasswordForcedCommand command , CancellationToken ct ) =>
10199 {
102- await sender . Send ( command , token ) ;
100+ await sender . Send ( command , ct ) ;
103101 return TypedResults . Ok ( ) ;
104102 } )
105103 . Authorize ( UserRole . User )
0 commit comments