sync full source from private myoffice

This commit is contained in:
myoffice-sync
2026-08-05 10:55:09 +00:00
parent 874796c860
commit 405abdfe69
714 changed files with 70352 additions and 234 deletions
@@ -0,0 +1,22 @@
using MyOffice.Web.Auth;
namespace MyOffice.Tests.Auth;
public class OpenIddictRedirectUriTests
{
[Fact]
public void BuildRedirectUri_uses_localhost_when_host_empty()
{
var uri = OpenIddictSeeder.BuildRedirectUri(null);
Assert.Equal("http://localhost:4300/silent-refresh.html", uri.ToString());
}
[Fact]
public void BuildRedirectUri_appends_silent_refresh_and_trims_slash()
{
var uri = OpenIddictSeeder.BuildRedirectUri("https://app.example.com/");
Assert.Equal("https://app.example.com/silent-refresh.html", uri.ToString());
}
}