hi
This is very strange. Could you share a project that reproduces the exception?
Thanks.
hi
We will fix the IsVisable problem in 9.3.7.
See https://github.com/abpframework/abp/pull/24290
Thanks.
hi @samirmustafayev
Any website that needs to check features must directly or indirectly reference the module that defines the MyDefinitionProvider class.
Thanks.
hi
Can you share your test project?
I will download and debug it.
liming.ma@volosoft.com
Thanks.
hi
How to configure OAuth2 in our application so that we can send and receive emails for Microsoft 365.
The OAuth2 settings page is for External Login instead of sending/receiving emails
See https://abp.io/docs/latest/modules/identity/oauth-login
Thanks
hi
Can you share your logs.txt file of AuthServer project?
liming.ma@volosoft.com
Thanks.
hi
Your application will first log out. After that, you can redirect to Microsoft's website to log out. And Microsoft redirects you back to your website.
post_logout_redirect_uri https://localhost:44372Thanks.
hi
The UI configuration OnCreateForm.IsVisible = false is ignored. The field still appears in the create dialog.
I guess Blazor has a problem. I will check and fix it.
Thanks.
hi
For the sorting problem, can you try overriding the EfCoreIdentityUserRepository?
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IIdentityUserRepository))]
public class MyEfCoreIdentityUserRepository : EfCoreIdentityUserRepository
{
public MyEfCoreIdentityUserRepository(IDbContextProvider<IIdentityDbContext> dbContextProvider) : base(dbContextProvider)
{
}
public override async Task<List<IdentityUser>> GetListAsync(
string sorting = null,
int maxResultCount = int.MaxValue,
int skipCount = 0,
string filter = null,
bool includeDetails = false,
Guid? roleId = null,
Guid? organizationUnitId = null,
Guid? id = null,
string userName = null,
string phoneNumber = null,
string emailAddress = null,
string name = null,
string surname = null,
bool? isLockedOut = null,
bool? notActive = null,
bool? emailConfirmed = null,
bool? isExternal = null,
DateTime? maxCreationTime = null,
DateTime? minCreationTime = null,
DateTime? maxModifitionTime = null,
DateTime? minModifitionTime = null,
CancellationToken cancellationToken = default)
{
var query = await GetFilteredQueryableAsync(
filter,
roleId,
organizationUnitId,
id,
userName,
phoneNumber,
emailAddress,
name,
surname,
isLockedOut,
notActive,
emailConfirmed,
isExternal,
maxCreationTime,
minCreationTime,
maxModifitionTime,
minModifitionTime,
cancellationToken
);
if (!sorting.IsNullOrWhiteSpace() && sorting.StartsWith("MyProperty"))
{
var myQuery = query.IncludeDetails(includeDetails);
myQuery = sorting.EndsWith("asc", StringComparison.CurrentCultureIgnoreCase)
? myQuery.OrderBy(a => EF.Property<DateTime>(a, "MyProperty"))
: myQuery.OrderByDescending(a => EF.Property<DateTime>(a, "MyProperty"));
return await myQuery
.PageBy(skipCount, maxResultCount)
.ToListAsync(GetCancellationToken(cancellationToken));
}
return await query.IncludeDetails(includeDetails)
.OrderBy(sorting.IsNullOrWhiteSpace() ? nameof(IdentityUser.CreationTime) + " desc" : sorting)
.PageBy(skipCount, maxResultCount)
.ToListAsync(GetCancellationToken(cancellationToken));
}
}
hi
The Blazor Server project will contain some MVC pages(eg: Login/Register/MyAccount...).
If you changed the layout of Blazor, you have to change the MVC as well.
Thanks.