try and trigger the workflow_dispatch event

This commit is contained in:
Paul Schneider
2025-06-11 14:28:00 +01:00
parent 836dae756f
commit 4c1235267c
5 changed files with 58 additions and 31 deletions

View File

@ -30,6 +30,8 @@ using Yavsc.Services;
using Yavsc.Settings;
using Yavsc.ViewModels.Auth;
using Yavsc.Server.Helpers;
using System.Security.Cryptography;
using Microsoft.IdentityModel.Tokens;
namespace Yavsc.Extensions;
@ -300,13 +302,18 @@ public static class HostingExtensions
}
else
{
var path = builder.Configuration["Kestrel:Endpoints:Https:KeyPath"];
var pass = builder.Configuration["Kestrel:Endpoints:Https:Password"];
var path = builder.Configuration["SigningCert:Path"];
var pass = builder.Configuration["SigningCert:Password"];
Debug.Assert(path != null);
FileInfo certFileInfo = new FileInfo(path);
Debug.Assert(certFileInfo.Exists);
var cert = new X509Certificate2(path, pass);
identityServerBuilder.AddSigningCredential(cert);
RSA rsa = RSA.Create();
rsa.ImportFromPem(File.ReadAllText(certFileInfo.FullName));
var signingCredentials = new SigningCredentials(new RsaSecurityKey(rsa), SecurityAlgorithms.RsaSha256)
{
CryptoProviderFactory = new CryptoProviderFactory { CacheSignatureProviders = false }
};
identityServerBuilder.AddSigningCredential(signingCredentials);
}
return identityServerBuilder;
}