Skip to content

Update to bit 10.6 (#99) - #100

Merged
yasmoradi merged 3 commits into
developfrom
99
Sep 15, 2026
Merged

yasmoradi merged 3 commits into
developfrom
99

Conversation

@yasmoradi

Copy link
Copy Markdown
Member

closes #99

// external sign-in keeps to the WebView, because its callback comes back here.
if (Uri.TryCreate(url, UriKind.Absolute, out var uri) && (uri.Scheme is not ("http" or "https") || uri.IsLoopback))
{
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
{
using MultipartFormDataContent form = new();

var sdp = new StringContent(offerSdp);
{
// Usually one flow spread over two origins rather than a bad request, and invalid_target alone shows neither.
logger.LogError("Refusing an authorization request for resource {Resource}: this request arrived at {Issuer}, which serves {KnownResources}.",
request.Resource, Issuer, string.Join(", ", OAuthResources.All(Issuer)));
{
// Usually one flow spread over two origins rather than a bad request, and invalid_target alone shows neither.
logger.LogError("Refusing an authorization request for resource {Resource}: this request arrived at {Issuer}, which serves {KnownResources}.",
request.Resource, Issuer, string.Join(", ", OAuthResources.All(Issuer)));
{
// Usually one flow spread over two origins rather than a bad request, and invalid_target alone shows neither.
logger.LogError("Refusing an authorization request for resource {Resource}: this request arrived at {Issuer}, which serves {KnownResources}.",
request.Resource, Issuer, string.Join(", ", OAuthResources.All(Issuer)));
CookieRequestCultureProvider.MakeCookieValue(new(CultureInfo.CurrentUICulture)));
HttpContext.Response.Cookies.Append(CookieRequestCultureProvider.DefaultCookieName,
CookieRequestCultureProvider.MakeCookieValue(new(CultureInfo.CurrentUICulture)),
new() { IsEssential = true });
new("return-url", returnUrl),
new("isForbidden", is403 ? "true" : "false")
});
httpContext.Response.Redirect($"{PageUrls.NotAuthorized}{redirectQuery}");
else if (httpContext.Response.StatusCode is 404 &&
httpContext.GetEndpoint() is null /* Please be aware that certain endpoints, particularly those associated with web API actions, may intentionally return a 404 error. */)
{
httpContext.Response.Redirect($"{PageUrls.NotFound}{QueryString.Create("url", httpContext.Request.GetEncodedPathAndQuery())}");
@yasmoradi
yasmoradi merged commit 8492131 into develop Sep 15, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project must be updated to latest bit 10.6

2 participants