This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed
src/Web/WebMVC/Controllers Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
namespace Microsoft . eShopOnContainers . WebMVC . Controllers
12
12
{
13
- [ Authorize ( AuthenticationSchemes = "OpenIdConnect" ) ]
13
+ [ Authorize ( AuthenticationSchemes = OpenIdConnectDefaults . AuthenticationScheme ) ]
14
14
public class AccountController : Controller
15
15
{
16
16
private readonly ILogger < AccountController > _logger ;
@@ -20,7 +20,7 @@ public AccountController(ILogger<AccountController> logger)
20
20
_logger = logger ?? throw new ArgumentNullException ( nameof ( logger ) ) ;
21
21
}
22
22
23
- [ Authorize ( AuthenticationSchemes = "OpenIdConnect" ) ]
23
+ [ Authorize ( AuthenticationSchemes = OpenIdConnectDefaults . AuthenticationScheme ) ]
24
24
public async Task < IActionResult > SignIn ( string returnUrl )
25
25
{
26
26
var user = User as ClaimsPrincipal ;
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
11
11
using System . Threading . Tasks ;
12
12
using ViewModels ;
13
13
using ViewModels . Pagination ;
14
+ using Microsoft . AspNetCore . Authentication . OpenIdConnect ;
14
15
15
- [ Authorize ( AuthenticationSchemes = "OpenIdConnect" ) ]
16
+ [ Authorize ( AuthenticationSchemes = OpenIdConnectDefaults . AuthenticationScheme ) ]
16
17
public class CampaignsController : Controller
17
18
{
18
19
private readonly ICampaignService _campaignService ;
Original file line number Diff line number Diff line change
1
+ using Microsoft . AspNetCore . Authentication . OpenIdConnect ;
1
2
using Microsoft . AspNetCore . Authorization ;
2
3
using Microsoft . AspNetCore . Mvc ;
3
4
using Microsoft . eShopOnContainers . WebMVC . Services ;
8
9
9
10
namespace Microsoft . eShopOnContainers . WebMVC . Controllers
10
11
{
11
- [ Authorize ( AuthenticationSchemes = "OpenIdConnect" ) ]
12
+ [ Authorize ( AuthenticationSchemes = OpenIdConnectDefaults . AuthenticationScheme ) ]
12
13
public class CartController : Controller
13
14
{
14
15
private readonly IBasketService _basketSvc ;
Original file line number Diff line number Diff line change
1
+ using Microsoft . AspNetCore . Authentication . OpenIdConnect ;
1
2
using Microsoft . AspNetCore . Authorization ;
2
3
using Microsoft . AspNetCore . Mvc ;
3
4
using Microsoft . eShopOnContainers . WebMVC . Services ;
7
8
8
9
namespace Microsoft . eShopOnContainers . WebMVC . Controllers
9
10
{
10
- [ Authorize ( AuthenticationSchemes = "OpenIdConnect" ) ]
11
+ [ Authorize ( AuthenticationSchemes = OpenIdConnectDefaults . AuthenticationScheme ) ]
11
12
public class OrderController : Controller
12
13
{
13
14
private IOrderingService _orderSvc ;
Original file line number Diff line number Diff line change 7
7
using Microsoft . eShopOnContainers . WebMVC . Services ;
8
8
using Microsoft . eShopOnContainers . WebMVC . ViewModels ;
9
9
using Microsoft . AspNetCore . Authorization ;
10
+ using Microsoft . AspNetCore . Authentication . OpenIdConnect ;
10
11
11
12
namespace WebMVC . Controllers
12
13
{
13
- [ Authorize ( AuthenticationSchemes = "OpenIdConnect" ) ]
14
+ [ Authorize ( AuthenticationSchemes = OpenIdConnectDefaults . AuthenticationScheme ) ]
14
15
public class OrderManagementController : Controller
15
16
{
16
17
private IOrderingService _orderSvc ;
You can’t perform that action at this time.
0 commit comments