await context.IsGrantedAsync(EducatePlusPermissions.TestForMenus.Default)
Maybe the current user does not have EducatePlusPermissions.TestForMenus.Default
permission
Hi,
I did not receive your email. please email to me.
Hi,
Just an example:
[Dependency(ReplaceServices = true)]
public class MyConnectionStringResolver : MultiTenantConnectionStringResolver
{
private readonly IStringEncryptionService _encryptionService;
public MyConnectionStringResolver(
IOptionsSnapshot<AbpDbConnectionOptions> options,
ICurrentTenant currentTenant,
IServiceProvider serviceProvider,
IStringEncryptionService encryptionService) : base(options, currentTenant, serviceProvider)
{
_encryptionService = encryptionService;
}
public override string Resolve(string connectionStringName = null)
{
var connectionString = base.Resolve(connectionStringName);
return _encryptionService.Decrypt(connectionString);
}
}
Hi,
You cannot redirect with authorization header. A redirection in the HTTP protocol doesn't support adding any headers to the target location.
Some possible solutions:
If the servers share a common domain, create a cookie on a domain that spans both (e.g. create cookie on domain.com if login is at auth.domain.com and the app at app.domain.com)
Consider adding it as a query string to the redirect URL. eg window.location.href = "...dashboard?access_token={token}".
.AddJwtBearer(options =>
{
.....
options.Events = new JwtBearerEvents
{
OnMessageReceived = context =>
{
var accessToken = context.Request.Query["access_token"];
// If the request is for our hub...
var path = context.HttpContext.Request.Path;
if (!string.IsNullOrEmpty(accessToken) &&
(path.StartsWithSegments("/hangfire")))
{
// Read the token out of the query string
context.Token = accessToken;
}
return Task.CompletedTask;
}
......
};
Hi,
Can I check it remotely(UTC+8)? shiwei.liang@volosoft.com
Hi,
We have created internal issue, it will fix soon. Thanks.
Try AbpClaimTypes.UserId = ClaimTypes.NameIdentifier;
Can you share the application logs?
You are right, We will fix it. thanks.
Hi,
Entities between modules should be independent, In domain-driven design, the module is also a context boundary. However, you can share entities by reference to the domain project of the module.