authorize attribute for api

master
Tudor Stanciu 2021-04-24 22:37:20 +03:00
parent 4a1831452b
commit d635313907
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using NetworkResurrector.Api.Application.Queries;
using System.Threading.Tasks;
@ -6,6 +7,7 @@ using System.Threading.Tasks;
namespace NetworkResurrector.Api.Controllers
{
[ApiController]
[Authorize]
[Route("network")]
public class NetworkController : ControllerBase
{

View File

@ -27,7 +27,7 @@ COPY --from=publish /app/publish .
ENV urls="http://*:80"
ENV ConnectionStrings__DatabaseConnection="***REMOVED***"
ENV IdentityServer__BaseAddress="https://toodle.ddns.net/identity-server-api/"
ENV IdentityServer__BaseAddress="http://***REMOVED***/"
#Workaround to lower the TLS level in container for old sql server version
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf