Skip to content

Commit 5e86040

Browse files
Allow Anon for CheckRemotes
1 parent 575e2be commit 5e86040

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/ServiceControl.Audit/Infrastructure/WebApi/RootController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace ServiceControl.Audit.Infrastructure.WebApi
22
{
33
using Configuration;
4+
using Microsoft.AspNetCore.Authorization;
45
using Microsoft.AspNetCore.Http.Extensions;
56
using Microsoft.AspNetCore.Mvc;
67
using Settings;
@@ -16,6 +17,7 @@ public RootController(Settings settings)
1617

1718
[Route("")]
1819
[HttpGet]
20+
[AllowAnonymous]
1921
public OkObjectResult Urls()
2022
{
2123
var baseUrl = Request.GetDisplayUrl();

src/ServiceControl.Monitoring/Http/RootController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace ServiceControl.Monitoring.Http
22
{
3+
using Microsoft.AspNetCore.Authorization;
34
using Microsoft.AspNetCore.Mvc;
45
using Microsoft.Extensions.Primitives;
56

@@ -8,6 +9,7 @@ public class RootController : ControllerBase
89
{
910
[Route("")]
1011
[HttpGet]
12+
[AllowAnonymous]
1113
public ActionResult<MonitoringInstanceModel> Get()
1214
{
1315
var model = new MonitoringInstanceModel

src/ServiceControl/Infrastructure/WebApi/RootController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
using System.Threading;
44
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Authorization;
56
using Microsoft.AspNetCore.Http.Extensions;
67
using Microsoft.AspNetCore.Mvc;
78
using ServiceControl.Api;
@@ -13,6 +14,7 @@ public class RootController(IConfigurationApi configurationApi) : ControllerBase
1314
{
1415
[Route("")]
1516
[HttpGet]
17+
[AllowAnonymous]
1618
public Task<RootUrls> Urls() => configurationApi.GetUrls(Request.GetDisplayUrl(), default);
1719

1820
[Route("instance-info")]

0 commit comments

Comments
 (0)