Skip to content

Commit 02639f2

Browse files
authored
feat: remove dcc config init (#1469)
* 调整初始化,默认请求接口不添加token
1 parent 5f7886b commit 02639f2

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

src/Services/Masa.Auth.Service.Admin/Program.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
// Copyright (c) MASA Stack All rights reserved.
22
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.
3-
using StackExchange.Redis;
43

54
var builder = WebApplication.CreateBuilder(args);
65

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

109
var project = MasaStackProject.Auth;
11-
12-
var defaultStackConfig = builder.Configuration.GetDefaultStackConfig();
13-
var webId = defaultStackConfig.GetWebId(project);
14-
var ssoDomain = defaultStackConfig.GetSsoDomain();
15-
var init = true;
16-
#if DEBUG
17-
init = false;
18-
#endif
19-
await builder.Services.AddMasaStackConfigAsync(project, MasaStackApp.Service, init, null, callerAction =>
20-
{
21-
callerAction.UseClientAuthentication(webId, ssoDomain);
22-
});
10+
await builder.Services.AddMasaStackConfigAsync(project, MasaStackApp.Service);
2311

2412
var masaStackConfig = builder.Services.GetMasaStackConfig();
2513
var publicConfiguration = builder.Services.GetMasaConfiguration().ConfigurationApi.GetPublic();

src/Services/Masa.Auth.Service.Admin/_Imports.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
global using OpenTelemetry.Instrumentation.StackExchangeRedis;
152152
global using OpenTelemetry.Trace;
153153
global using SixLabors.ImageSharp;
154+
global using StackExchange.Redis;
154155
global using System.Collections.Concurrent;
155156
global using System.Diagnostics.CodeAnalysis;
156157
global using System.Linq.Expressions;

0 commit comments

Comments
 (0)