File tree Expand file tree Collapse file tree
src/IdentityManager2/Api/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ namespace IdentityManager2.Api.Controllers
1212{
1313 [ SecurityHeaders ]
1414 [ ResponseCache ( NoStore = true , Location = ResponseCacheLocation . None ) ]
15+ [ Authorize ( IdentityManagerConstants . IdMgrAuthPolicy ) ]
1516 public class PageController : Controller
1617 {
1718 private readonly IdentityManagerOptions config ;
@@ -56,7 +57,6 @@ public async Task<IActionResult> Login()
5657 }
5758
5859 [ HttpGet ]
59- [ AllowAnonymous ]
6060 [ Route ( "api/login/refresh" ) ]
6161 public async Task < IActionResult > Refresh ( )
6262 {
@@ -71,7 +71,6 @@ public async Task<IActionResult> Refresh()
7171 }
7272
7373 [ HttpGet ]
74- [ AllowAnonymous ]
7574 [ Route ( "api/logout" , Name = IdentityManagerConstants . RouteNames . Logout ) ]
7675 public async Task < IActionResult > Logout ( )
7776 {
You can’t perform that action at this time.
0 commit comments