diff --git a/Gameboard.ShogiUI.Sockets/Gameboard.ShogiUI.Sockets.csproj b/Gameboard.ShogiUI.Sockets/Gameboard.ShogiUI.Sockets.csproj index e9540eb..03843c0 100644 --- a/Gameboard.ShogiUI.Sockets/Gameboard.ShogiUI.Sockets.csproj +++ b/Gameboard.ShogiUI.Sockets/Gameboard.ShogiUI.Sockets.csproj @@ -9,7 +9,6 @@ - diff --git a/Gameboard.ShogiUI.Sockets/Startup.cs b/Gameboard.ShogiUI.Sockets/Startup.cs index 8d05425..4c7d2b3 100644 --- a/Gameboard.ShogiUI.Sockets/Startup.cs +++ b/Gameboard.ShogiUI.Sockets/Startup.cs @@ -1,5 +1,4 @@ using FluentValidation; -using Gameboard.ShogiUI.Sockets.Extensions; using Gameboard.ShogiUI.Sockets.Managers; using Gameboard.ShogiUI.Sockets.Managers.ClientActionHandlers; using Gameboard.ShogiUI.Sockets.Repositories; @@ -13,10 +12,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Http; -using Microsoft.Identity.Client; using Microsoft.Identity.Web; using Newtonsoft.Json; using Newtonsoft.Json.Converters; @@ -95,19 +91,6 @@ namespace Gameboard.ShogiUI.Sockets services.AddSwaggerDocument(config => { - //config.AddSecurity("bearer", Enumerable.Empty(), new NSwag.OpenApiSecurityScheme - //{ - // Type = NSwag.OpenApiSecuritySchemeType.OAuth2, - // Flow = NSwag.OpenApiOAuth2Flow.Implicit, - // Flows = new NSwag.OpenApiOAuthFlows - // { - // Implicit = new NSwag.OpenApiOAuthFlow - // { - // Scopes = - // } - // } - //}); - // This just ensures anyone with a microsoft account can make API calls. config.AddSecurity("bearer", new NSwag.OpenApiSecurityScheme { @@ -143,7 +126,7 @@ namespace Gameboard.ShogiUI.Sockets var origins = new[] { "http://localhost:3000", "https://localhost:3000", "http://127.0.0.1:3000", "https://127.0.0.1:3000", - "https://dev.lucaserver.space", "https://lucaserver.space" + "https://api.lucaserver.space", "https://lucaserver.space" }; var socketOptions = new WebSocketOptions(); foreach (var o in origins)