Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/Services/Masa.Auth.Service.Admin/Program.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.
using StackExchange.Redis;

var builder = WebApplication.CreateBuilder(args);

ValidatorOptions.Global.LanguageManager = new MasaLanguageManager();
GlobalValidationOptions.SetDefaultCulture("zh-CN");

var project = MasaStackProject.Auth;

var defaultStackConfig = builder.Configuration.GetDefaultStackConfig();
var webId = defaultStackConfig.GetWebId(project);
var ssoDomain = defaultStackConfig.GetSsoDomain();
var init = true;
#if DEBUG
init = false;
#endif
await builder.Services.AddMasaStackConfigAsync(project, MasaStackApp.Service, init, null, callerAction =>
{
callerAction.UseClientAuthentication(webId, ssoDomain);
});
await builder.Services.AddMasaStackConfigAsync(project, MasaStackApp.Service);

var masaStackConfig = builder.Services.GetMasaStackConfig();
var publicConfiguration = builder.Services.GetMasaConfiguration().ConfigurationApi.GetPublic();
Expand Down
1 change: 1 addition & 0 deletions src/Services/Masa.Auth.Service.Admin/_Imports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
global using OpenTelemetry.Instrumentation.StackExchangeRedis;
global using OpenTelemetry.Trace;
global using SixLabors.ImageSharp;
global using StackExchange.Redis;
global using System.Collections.Concurrent;
global using System.Diagnostics.CodeAnalysis;
global using System.Linq.Expressions;
Expand Down
Loading