Skip to content

Commit 8f887cd

Browse files
committed
fix: deleted the wrong service
1 parent de49818 commit 8f887cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Catglobe.CgScript.Deployment/DeploymentAuthenticator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ internal partial class DeploymentAuthenticator(HttpClient httpClient, IOptions<D
1313

1414
private async Task<string> AcquireToken(CancellationToken cancellationToken)
1515
{
16-
var o = options.Value;
17-
httpClient.BaseAddress = options.Value.Authority;
16+
var o = options.Value;
1817
var requestData = new Dictionary<string, string> {
1918
{"grant_type", "client_credentials"},
2019
{"client_id", o.ClientId},

Catglobe.CgScript.Deployment/HostExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static IServiceCollection AddCgScriptDeployment(this IServiceCollection s
3838
private static IServiceCollection AddCommonCgScript(IServiceCollection services)
3939
{
4040
services.TryAddSingleton<IScriptProvider, FilesFromDirectoryScriptProvider>();
41-
services.AddScoped<DeploymentAuthenticator>();
41+
services.AddScoped<DeploymentAuthHandler>();
4242
services.AddHttpClient<IDeployer, Deployer>((sp, httpClient) => {
4343
var site = sp.GetRequiredService<IOptions<DeploymentOptions>>().Value.Authority;
4444
httpClient.BaseAddress = new(site + "api/CgScriptDeployment/");

0 commit comments

Comments
 (0)