hi
You can create a middleware to determine the requested URL and redirect to /home/login
if the current request has no authentication.
var authenticateResult = await httpContext.AuthenticateAsync("HangfireCookies");
if (authenticateResult.Succeeded)
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-6.0
hi
Try to clear the cookies and other of the localhost
domain.
You can seed a new database to check the data.
https://github.com/abpframework/abp/commit/cf28da1466877f4727f96277924416d4ec7fa9b2#diff-8b4655256c3fe3d4877ecf63001f2f037a6606d2be9b9e2b436050e966d37514R248-R259
Invalid client configuration for client TiberVendor_Swagger_API: No redirect URI configured.
These logs are normal. not include the errors.
hi
You can google the error message. I'm not familiar with this.
What about the Identity Server logs?
Waiting for good news.
hi
Usually, you can use ICurrentTenant to get current tenant info, if your API needs to control it, you can pass tenantId
to your API.
https://docs.abp.io/en/abp/latest/Multi-Tenancy#icurrenttenant https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant
hi
See https://docs.abp.io/en/abp/latest/Authorization#claims-principal-factory
public static class CurrentUserExtensions
{
public static string GetSocialSecurityNumber(this ICurrentUser currentUser)
{
return currentUser.FindClaimValue("SocialSecurityNumber");
}
}