sync build tree from private myoffice

This commit is contained in:
myoffice-sync
2026-08-06 12:05:38 +00:00
parent 763a580c51
commit ebe6b6039e
4 changed files with 17 additions and 5 deletions
@@ -49,6 +49,15 @@ public static class OpenIddictServiceCollectionExtensions
ConfigureCryptography(options, configuration, environment);
// Public URL behind nginx — discovery issuer must match SPA window.location.origin,
// not the CT LAN address Kestrel sees on the wire.
var publicHost = configuration.GetValue<string>("FrontEnd:Host")?.Trim().TrimEnd('/');
if (!string.IsNullOrWhiteSpace(publicHost)
&& Uri.TryCreate(publicHost + "/", UriKind.Absolute, out var issuerUri))
{
options.SetIssuer(issuerUri);
}
var aspNetCoreBuilder = options.UseAspNetCore()
.EnableAuthorizationEndpointPassthrough()
.EnableUserInfoEndpointPassthrough()