Thanks
Can you confirm the appsettings.Development.json doesn't contain http
appsettings.Development.json
appsettings.json
Please also share the code of MyApplicationBlazorModule and MyApplicationBlazorClientModule
liming.ma@volosoft.com
Thanks.
hi
What is your email?
I have changed your project to an abp modular app.
Thanks.
What are the connection strings of the current tenant?
You can try creating a new tenant with a custom connection string, then check the logs.txt file to see if the tenant migration is successful.
Thanks.
hi
Can you try to exclude the message by .Filter.ByExcluding(logEvent =>?
Log.Logger = new LoggerConfiguration()
#if DEBUG
.MinimumLevel.Debug()
#else
.MinimumLevel.Information()
#endif
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Filter.ByExcluding(logEvent =>
{
return logEvent.MessageTemplate.Text.Contains("health-status") || logEvent.MessageTemplate.Text.Contains("Health checks");
})
.Enrich.FromLogContext()
Thanks.
hi
Could you please share the code that reproduces the issue?
Thanks
hi
You can add a new IAbpClaimsPrincipalContributor and check results from GetExternalLoginInfoAsync.
Your roles claims will exist in externalLoginInfo.
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Security.Claims;
using IdentityUser = Volo.Abp.Identity.IdentityUser;
namespace MyCompanyName.MyProjectName.Web;
public class MyClaimsPrincipalContributor : IAbpClaimsPrincipalContributor, ITransientDependency
{
protected SignInManager<IdentityUser> SignInManager { get; }
public MyClaimsPrincipalContributor(SignInManager<IdentityUser> signInManager)
{
SignInManager = signInManager;
}
public async Task ContributeAsync(AbpClaimsPrincipalContributorContext context)
{
var identity = context.ClaimsPrincipal.Identities.FirstOrDefault();
if (identity == null)
{
return;
}
var externalLoginInfo = await SignInManager.GetExternalLoginInfoAsync();
if (externalLoginInfo == null)
{
return;
}
var roles = externalLoginInfo.Principal.Claims
.Where(c => c.Type == "roles")
.Select(c => c.Value)
.ToList();
if (roles.IsNullOrEmpty())
{
return;
}
foreach (var role in roles)
{
identity.AddClaim(new Claim("MyRoles", role));
}
}
}
hi
The Register page in the Account Pro module.
You can download its source code.
Thanks.
hi
Our angular team will help you asap
Thanks.
No problem. Take your time.