Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e6b7c4d
Respect auditing attributes on inherited service methods
maliming Nov 18, 2026
b0374c2
Render Basic Theme menu element ids as encoded attributes
maliming Nov 18, 2026
99f8d11
Validate the tenant name length before normalizing it in the tenant s…
maliming Nov 18, 2026
bd8b11f
Apply tenant and soft-delete filters to derived entities that add them
maliming Nov 18, 2026
f4d0d77
Check class-level authorization and features for explicit interface m…
maliming Nov 18, 2026
fc74e92
Require opt-in to use client credentials during HTTP requests
maliming Nov 18, 2026
aaa4329
Add the client credentials opt-in to the 11.0 migration guide
maliming Nov 18, 2026
55fcab1
Sanitize rendered blog post HTML in the Blogging module
maliming Nov 23, 2026
ac87993
Generate Docs PDFs with POST instead of GET
maliming Nov 23, 2026
f09973e
Exclude Docs project extra properties from audit logs
maliming Nov 23, 2026
adb6c57
Cache Docs project languages per version and reject unknown versions
maliming Nov 23, 2026
e64b8b1
Validate request culture names against the supported cultures
maliming Nov 23, 2026
98ef657
Merge remote-tracking branch 'origin/rel-11.0' into maliming/security…
maliming Nov 23, 2026
8471b6c
Require authentication and sanitize content previews by default
maliming Nov 24, 2026
1248c22
Encode comment tooltips and validate comment URLs in CMS Kit admin
maliming Nov 25, 2026
e8aef94
Parse CMS Kit content widgets without regex backtracking
maliming Nov 25, 2026
0948902
Check the tag entity type before removing an entity tag
maliming Nov 25, 2026
d29f6bb
Invalidate CMS Kit page caches after the unit of work completes
maliming Nov 25, 2026
5092e24
Hide inactive and unauthorized CMS Kit menu items in the public API
maliming Nov 25, 2026
404aeae
Cache only existing CMS Kit pages and blog features
maliming Nov 25, 2026
214fa11
Reject blog post interactions when the blog feature is disabled
maliming Nov 25, 2026
f319a0c
Restrict public blog post sorting and hide unpublished posts
maliming Nov 25, 2026
5cb992c
Add tests for Basic Theme menu element ids
maliming Nov 25, 2026
8ecfe66
Reject empty recovery codes in IdentityUserStore
maliming Nov 25, 2026
b6457cc
Bind wildcard redirect URIs to the registered callbacks and the user'…
maliming Nov 25, 2026
eec6651
Record external login results for the actual user and tenant
maliming Nov 25, 2026
bae033d
Find shared users after password sign-in
maliming Nov 26, 2026
d5ca8af
Cache Docs languages for unversioned projects and briefly for fallbacks
maliming Nov 26, 2026
0c3cbe4
Restrict admin CMS Kit sorting and close remaining review gaps
maliming Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/en/framework/architecture/multi-tenancy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ The following resolvers are provided and configured by default;
- `HeaderTenantResolveContributor`: Tries to find current tenant id from HTTP headers. The header name is `__tenant` by default.
- `CookieTenantResolveContributor`: Tries to find current tenant id from cookie values. The cookie name is `__tenant` by default.

A resolved tenant name longer than `TenantConfigurationProvider.MaxTenantNameLength` (256 by default) is treated as an unknown tenant without being normalized. If you increase the tenant name length of the Tenant Management or SaaS module above this value, increase `TenantConfigurationProvider.MaxTenantNameLength` and the tenant switch form's `TenantInfoModel.MaxNameLength` as well.

###### Problems with the NGINX

You may have problems with the `__tenant` in the HTTP Headers if you're using the [nginx](https://www.nginx.com/) as the reverse proxy server. Because it doesn't allow to use underscore and some other special characters in the HTTP headers and you may need to manually configure it. See the following documents please:
Expand Down Expand Up @@ -313,6 +315,8 @@ PreConfigure<AbpOpenIddictWildcardDomainOptions>(options =>
});
```

`{0}` is bound to the current tenant. Register each callback on the parent domain with its exact path and query, in the client's redirect URIs for sign-in and post-logout redirect URIs for sign-out. For example, registering `https://mydomain.com/signin-oidc` allows `https://tenantname.mydomain.com/signin-oidc`; other paths, ports and clients are rejected. Before issuing an authorization code, ABP also checks that the subdomain belongs to the signed-in user's tenant. The tenant is resolved from the authorization request, so the Auth Server must also be served on the tenant subdomains; if all tenants share one Auth Server host, use an explicit `https://*.mydomain.com` format instead. That format trusts every matching subdomain, including other tenants.

You must add this code to the `Configure` method as well.

```csharp
Expand Down
1 change: 1 addition & 0 deletions docs/en/modules/account/shared-user-accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ When you use Shared User Accounts:

- Username/email uniqueness becomes **global** (Host + all tenants). A username/email can exist only once, but that user can be invited into multiple tenants.
- Some security/user management settings (2FA, lockout, password policies, recaptcha, etc.) are managed at the **Host** level.
- The `EnableLocalLogin` setting is checked before the account is found, so it uses the tenant of the login request (the host for the default Account Pro login pages).

If you are migrating from an isolated strategy, ABP will validate the existing data when you switch to Shared. If there are conflicts (e.g., the same email registered as separate users in different tenants), you must resolve them before enabling the shared strategy. See the [Migration Guide](#migration-guide) section below.

Expand Down
2 changes: 1 addition & 1 deletion docs/en/modules/cms-kit/blogging.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ You can create and edit an existing blog post on this page. If you enable specif

Blog posts have three statuses: `Draft`, `WaitingForReview` and `Published`. Creating, updating, deleting and publishing posts use separate permissions. The public blog list requests only published posts and can filter them by author, tag or the current user's marked items.

The built-in renderer allows HTML in blog post Markdown. The per-blog **Prevent XSS** feature controls whether the Markdown renderer sanitizes that HTML and is enabled for newly created blogs. Keep it enabled when post authors are not trusted to submit arbitrary HTML.
The built-in renderer allows HTML in blog post Markdown. The per-blog **Prevent XSS** feature controls whether the Markdown renderer sanitizes that HTML and is enabled for newly created blogs. It also applies to editor previews. Keep it enabled when post authors are not trusted to submit arbitrary HTML.

## Internals

Expand Down
5 changes: 4 additions & 1 deletion docs/en/modules/cms-kit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ Example `appsettings.json` configuration:
"RemoteServices": {
"AbpIdentity": {
"BaseUrl": "https://localhost:44388/",
"UseCurrentAccessToken": false
"UseCurrentAccessToken": false,
"AllowClientCredentialsInHttpContext": true
}
},
"IdentityClients": {
Expand All @@ -108,6 +109,8 @@ Example `appsettings.json` configuration:
}
```

With `Volo.Abp.Http.Client.IdentityModel.Web`, set `AllowClientCredentialsInHttpContext=true` to allow application credentials during HTTP requests, including when `UseCurrentAccessToken=false`. This also permits anonymous requests, so authorize privileged endpoints before enabling it.

See the [Identity module's External User Lookup Service section](../identity.md#external-user-lookup-service) and the [Synchronous Interservice Communication guide](../../guides/synchronous-interservice-communication.md) for the complete setup.

## How to Install
Expand Down
2 changes: 1 addition & 1 deletion docs/en/modules/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Place `docs-langs.json` at the project root, outside the language directories:

When a GitHub source cannot load this file, it falls back to the language configured by `DocsGithubLanguageOptions.DefaultLanguage`, which is English by default. The file-system source requires a valid `docs-langs.json` file.

The language list is cached for 24 hours using the project short name, not the requested version. Keep `docs-langs.json` consistent across all versions. Clear the project cache after changing the manifest; the first version requested after a clear repopulates the project-wide language cache.
The language list is cached for 24 hours per project and version, so each version can have its own `docs-langs.json`. Versions that the source does not list are not cached, and a fallback language list is kept only for a minute. Clear the project cache after changing the manifest.

### Adding a custom document source

Expand Down
5 changes: 4 additions & 1 deletion docs/en/modules/identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ Example configuration for the calling application:
"RemoteServices": {
"AbpIdentity": {
"BaseUrl": "https://localhost:44388/",
"UseCurrentAccessToken": false
"UseCurrentAccessToken": false,
"AllowClientCredentialsInHttpContext": true
}
},
"IdentityClients": {
Expand All @@ -188,6 +189,8 @@ Example configuration for the calling application:
}
```

With `Volo.Abp.Http.Client.IdentityModel.Web`, set `AllowClientCredentialsInHttpContext=true` to allow application credentials during HTTP requests, including when `UseCurrentAccessToken=false`. This also permits anonymous requests, so authorize privileged endpoints before enabling it.

The exact `ClientId`, `ClientSecret` and `Scope` values depend on the application that hosts the Identity module. See the [Integration Services](../framework/api-development/integration-services.md) and [Synchronous Interservice Communication](../guides/synchronous-interservice-communication.md) documents for the full setup.

## Options
Expand Down
49 changes: 49 additions & 0 deletions docs/en/release-info/migration-guides/abp-11-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,55 @@ The client pages are still routed and authorized in the browser, and the APIs st

This doesn't apply to Blazor Server, Blazor Web App and single-layer solutions. Their hosts authenticate the users on the server.

### Client Credentials During HTTP Requests Require Opt-In

**Who is affected**

- Web applications that use `AbpHttpClientIdentityModelWebModule` and configure `IdentityClients` for a remote service, for example to call the Identity module's user lookup with `"UseCurrentAccessToken": false`.

**What changed**

During an HTTP request, when there is no current user token or `UseCurrentAccessToken` is `false`, the remote service call no longer falls back to the `IdentityClients` credentials. Before, an anonymous request to the Web host could call the remote service with the application's permissions. Calls made without an `HttpContext`, such as background jobs, still use the credentials.

**What to do**

Set `AllowClientCredentialsInHttpContext` to `true` for the remote services that should use the application credentials during HTTP requests:

```json
"RemoteServices": {
"AbpIdentity": {
"BaseUrl": "https://localhost:44388/",
"UseCurrentAccessToken": false,
"AllowClientCredentialsInHttpContext": true
}
}
```

This also applies to anonymous requests, so make sure the endpoints that call these services are authorized.

> See [#26514](https://github.com/abpframework/abp/pull/26514) for details.

### OpenIddict Wildcard Domain Callbacks Must Be Registered

**Who is affected**

- Applications that enable `EnableWildcardDomainSupport` in `AbpOpenIddictWildcardDomainOptions`.
- Applications that derive from `AbpOpenIddictWildcardDomainBase` or use `AbpValidateRedirectUriParameter` / `AbpValidatePostLogoutRedirectUriParameter`.

**What changed**

A wildcard redirect or post-logout redirect URI is accepted only when the client has registered the same callback on the parent domain, with the same scheme, port, path and query. With a `{0}` format, the subdomain must also match the current tenant, and an authorization code is issued only for the signed-in user's tenant. OpenIddict's own redirect URI format checks now apply to wildcard URIs too.

Callbacks registered with their exact URI are not affected. An explicit `*` format still trusts every matching subdomain. A `{0}` format resolves the tenant from the authorization request, so it requires the Auth Server to be served on the tenant subdomains.

`AbpValidateRedirectUriParameter` and `AbpValidatePostLogoutRedirectUriParameter` are removed. `AbpOpenIddictWildcardDomainBase` no longer has `WildcardDomainOptions` and `CheckWildcardDomainAsync`; its constructor now takes the original handler and an `AbpOpenIddictWildcardDomainValidator`. The constructors of `AbpValidateClientRedirectUri`, `AbpValidateClientPostLogoutRedirectUri` and `AbpValidateAuthorizedParty` now take an `AbpOpenIddictWildcardDomainValidator` instead of the options.

**What to do**

Register each client's callbacks on the parent domain. For example, register `https://mydomain.com/signin-oidc` to allow `https://tenantname.mydomain.com/signin-oidc`. If all tenants share one Auth Server host, use an explicit `*` format. Custom handlers should call `WildcardDomainValidator` instead of `CheckWildcardDomainAsync`.

> See [#26514](https://github.com/abpframework/abp/pull/26514) for details.

## Pro

This version contains the following changes on the PRO side:
Expand Down
5 changes: 3 additions & 2 deletions docs/en/samples/microservice-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,12 +919,13 @@ Since it uses the Internal Gateway, it should also configure the remote endpoint
"RemoteServices": {
"Default": {
"BaseUrl": "http://localhost:65129/",
"UseCurrentAccessToken": "false"
"UseCurrentAccessToken": "false",
"AllowClientCredentialsInHttpContext": true
}
}
````

When you set `UseCurrentAccessToken` to `false`, ABP ignores the current `access_token` in the current `HttpContext` and authenticates to the AuthServer with the credentials defined above.
Setting `UseCurrentAccessToken=false` ignores the current user token. A Web host also needs `AllowClientCredentialsInHttpContext=true` to use the application credentials above, including for anonymous requests. Authorize privileged endpoints before enabling it.

Why not using the token of the current user in the current request? Because, the user may not have required permissions on the Identity module, so it can not just pass the current authentication token directly to the Identity service. In addition, some of the blog service APIs are anonymous (not requires authenticated user), so in some cases there is no "current user" in the HTTP request. For these reasons, Blogging service should be defined as a client for the Identity service with its own credentials and permissions.

Expand Down
1 change: 1 addition & 0 deletions framework/Volo.Abp.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
<Project Path="test/Volo.Abp.AspNetCore.Components.Web.Theming.Tests/Volo.Abp.AspNetCore.Components.Web.Theming.Tests.csproj" />
<Project Path="test/Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.Tests/Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.Tests.csproj" />
<Project Path="test/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Tests/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Tests.csproj" />
<Project Path="test/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Tests/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Tests.csproj" />
<Project Path="test/Volo.Abp.AspNetCore.Mvc.Versioning.Tests/Volo.Abp.AspNetCore.Mvc.Versioning.Tests.csproj" />
<Project Path="test/Volo.Abp.AspNetCore.Mvc.Client.Tests/Volo.Abp.AspNetCore.Mvc.Client.Tests.csproj" />
<Project Path="test/Volo.Abp.AspNetCore.Serilog.Tests/Volo.Abp.AspNetCore.Serilog.Tests.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Globalization;
using System.Net;
using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Distributed;
Expand All @@ -10,6 +11,7 @@
using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ClientProxies;
using Volo.Abp.Caching;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Localization;
using Volo.Abp.Threading;
using Volo.Abp.Users;
Expand Down Expand Up @@ -144,12 +146,23 @@ protected virtual async Task<ApplicationConfigurationDto> GetRemoteConfiguration
}
);

await Task.WhenAll(configTask, localizationTask);
var retryLocalization = false;
try
{
await Task.WhenAll(configTask, localizationTask);
}
catch (AbpRemoteCallException exception) when (
exception.HttpStatusCode == (int)HttpStatusCode.BadRequest &&
configTask.IsCompletedSuccessfully && localizationTask.IsFaulted &&
!string.Equals(configTask.Result.Localization.CurrentCulture.Name, cultureName, StringComparison.OrdinalIgnoreCase))
{
retryLocalization = true;
}

var config = configTask.Result;
var localizationDto = localizationTask.Result;
ApplicationLocalizationDto localizationDto;

if (!CultureHelper.IsCompatibleCulture(config.Localization.CurrentCulture.Name, cultureName))
if (retryLocalization || !CultureHelper.IsCompatibleCulture(config.Localization.CurrentCulture.Name, cultureName))
{
localizationDto = await ApplicationLocalizationClientProxy.GetAsync(
new ApplicationLocalizationRequestDto
Expand All @@ -159,6 +172,10 @@ protected virtual async Task<ApplicationConfigurationDto> GetRemoteConfiguration
}
);
}
else
{
localizationDto = localizationTask.Result;
}

config.Localization.Resources = localizationDto.Resources;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Localization;
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Validation;

namespace Pages.Abp.MultiTenancy;

Expand Down Expand Up @@ -44,6 +45,8 @@ public virtual async Task OnGetAsync()

public virtual async Task OnPostAsync()
{
ValidateModel();

Guid? tenantId = null;
if (!Input.Name.IsNullOrEmpty())
{
Expand All @@ -66,6 +69,9 @@ public virtual async Task OnPostAsync()

public class TenantInfoModel
{
public static int MaxNameLength { get; set; } = 256;

[DynamicStringLength(typeof(TenantInfoModel), nameof(MaxNameLength))]
[InputInfoText("SwitchTenantHint")]
public string? Name { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.RequestLocalization;
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Options;
using Volo.Abp.Application.Services;
using Volo.Abp.Localization;
using Volo.Abp.Localization.External;
using Volo.Abp.Validation;

namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations;

Expand All @@ -15,23 +18,30 @@ public class AbpApplicationLocalizationAppService :
{
protected IExternalLocalizationStore ExternalLocalizationStore { get; }
protected AbpLocalizationOptions LocalizationOptions { get; }
protected AbpRequestCultureResolver RequestCultureResolver { get; }

public AbpApplicationLocalizationAppService(
IExternalLocalizationStore externalLocalizationStore,
IOptions<AbpLocalizationOptions> localizationOptions)
IOptions<AbpLocalizationOptions> localizationOptions,
AbpRequestCultureResolver requestCultureResolver)
{
ExternalLocalizationStore = externalLocalizationStore;
LocalizationOptions = localizationOptions.Value;
RequestCultureResolver = requestCultureResolver;
}

public virtual async Task<ApplicationLocalizationDto> GetAsync(ApplicationLocalizationRequestDto input)
{
if (!CultureHelper.IsValidCultureCode(input.CultureName))
var culture = await RequestCultureResolver.ResolveAsync(input.CultureName);
if (culture == null)
{
throw new AbpException("The selected culture is not valid! Make sure you enter a valid culture name.");
throw new AbpValidationException(new[]
{
new ValidationResult("The selected culture is not supported.", new[] { nameof(input.CultureName) })
});
}

using (CultureHelper.Use(input.CultureName))
using (CultureHelper.Use(culture))
{
var resources = LocalizationOptions
.Resources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.RequestLocalization;
using Volo.Abp.Auditing;
using Volo.Abp.Localization;
using Volo.Abp.Validation;

namespace Volo.Abp.AspNetCore.Mvc.Localization;

Expand All @@ -17,35 +18,41 @@ namespace Volo.Abp.AspNetCore.Mvc.Localization;
public class AbpLanguagesController : AbpController
{
protected IQueryStringCultureReplacement QueryStringCultureReplacement { get; }
protected AbpRequestCultureResolver RequestCultureResolver { get; }

public AbpLanguagesController(IQueryStringCultureReplacement queryStringCultureReplacement)
public AbpLanguagesController(
IQueryStringCultureReplacement queryStringCultureReplacement,
AbpRequestCultureResolver requestCultureResolver)
{
QueryStringCultureReplacement = queryStringCultureReplacement;
RequestCultureResolver = requestCultureResolver;
}

[HttpGet]
public virtual async Task<IActionResult> Switch(string culture, string uiCulture = "", string returnUrl = "")
{
if (!CultureHelper.IsValidCultureCode(culture))
var resolvedCulture = await RequestCultureResolver.ResolveAsync(culture, uiCulture: false);
var resolvedUiCulture = await RequestCultureResolver.ResolveAsync(uiCulture, uiCulture: true);
if (resolvedCulture == null || resolvedUiCulture == null)
{
throw new AbpException("The selected culture is not valid! Make sure you enter a valid culture code.");
}

if (!CultureHelper.IsValidCultureCode(uiCulture))
{
throw new AbpException("The selected uiCulture is not valid! Make sure you enter a valid culture code.");
throw new AbpValidationException(new[]
{
new ValidationResult("The selected culture is not supported.",
new[] { resolvedCulture == null ? nameof(culture) : nameof(uiCulture) })
});
}

var requestCulture = new RequestCulture(resolvedCulture, resolvedUiCulture);
AbpRequestCultureCookieHelper.SetCultureCookie(
HttpContext,
new RequestCulture(culture, uiCulture)
requestCulture
);

HttpContext.Items[AbpRequestLocalizationMiddleware.HttpContextItemName] = true;

var context = new QueryStringCultureReplacementContext(
HttpContext,
new RequestCulture(culture, uiCulture),
requestCulture,
returnUrl,
GetCurrentCultureFromRequestCookie());

Expand Down
Loading
Loading