Hi,
Could you please share a minimal reproducible project with me? I will check it. shiwei.liang@volosoft.com
Hi,
You can add a role named PublicUser
and check it in the middleware.
For example
admin project
app.UseAuthentication();
.......
app.Use(async (httpContext, next) =>
{
var currentUser = httpContext.RequestServices.GetRequiredService<ICurrentUser>();
if (currentUser.IsInRole("PublicUser"))
{
//redirect ...
return;
}
await next();
});
Hi,
I think this is a new question, could you please create a new ticket? thanks.
Hi,
I think you can set the environment value in this way.
Read from your config
and set to environment
https://abp.io/docs/latest/framework/ui/angular/environment#how-to-set-the-environment
Hi,
How do we accomplish this within one microsercie without having to make service to service api calls?
You have to add the EntityFrameworkCore
project reference and module dependencies then add db connection strings to appsettings.json. this way you can inject the Repository to get data.