yep
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentValidation" Version="10.3.6" />
|
<PackageReference Include="FluentValidation" Version="10.3.6" />
|
||||||
<PackageReference Include="IdentityModel" Version="6.0.0-preview.3" />
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.AzureAD.UI" Version="6.0.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.AzureAD.UI" Version="6.0.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.1" />
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using FluentValidation;
|
using FluentValidation;
|
||||||
using Gameboard.ShogiUI.Sockets.Extensions;
|
|
||||||
using Gameboard.ShogiUI.Sockets.Managers;
|
using Gameboard.ShogiUI.Sockets.Managers;
|
||||||
using Gameboard.ShogiUI.Sockets.Managers.ClientActionHandlers;
|
using Gameboard.ShogiUI.Sockets.Managers.ClientActionHandlers;
|
||||||
using Gameboard.ShogiUI.Sockets.Repositories;
|
using Gameboard.ShogiUI.Sockets.Repositories;
|
||||||
@@ -13,10 +12,7 @@ using Microsoft.AspNetCore.Builder;
|
|||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.Extensions.Http;
|
|
||||||
using Microsoft.Identity.Client;
|
|
||||||
using Microsoft.Identity.Web;
|
using Microsoft.Identity.Web;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
@@ -95,19 +91,6 @@ namespace Gameboard.ShogiUI.Sockets
|
|||||||
|
|
||||||
services.AddSwaggerDocument(config =>
|
services.AddSwaggerDocument(config =>
|
||||||
{
|
{
|
||||||
//config.AddSecurity("bearer", Enumerable.Empty<string>(), 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.
|
// This just ensures anyone with a microsoft account can make API calls.
|
||||||
config.AddSecurity("bearer", new NSwag.OpenApiSecurityScheme
|
config.AddSecurity("bearer", new NSwag.OpenApiSecurityScheme
|
||||||
{
|
{
|
||||||
@@ -143,7 +126,7 @@ namespace Gameboard.ShogiUI.Sockets
|
|||||||
var origins = new[] {
|
var origins = new[] {
|
||||||
"http://localhost:3000", "https://localhost:3000",
|
"http://localhost:3000", "https://localhost:3000",
|
||||||
"http://127.0.0.1:3000", "https://127.0.0.1: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();
|
var socketOptions = new WebSocketOptions();
|
||||||
foreach (var o in origins)
|
foreach (var o in origins)
|
||||||
|
|||||||
Reference in New Issue
Block a user