Activities of "maliming"

hi

[INF] AuthenticationScheme: Cookies was forbidden. 2023-01-13 07:15:27.044 +00:00 [INF] AuthenticationScheme: oidc was forbidden. 2023-01-13 07:15:27.052 +00:00

I see that the app's cookie authentication fails. However, the app's cookie is valid for 1 year, and I'm wondering why it doesn't work.

Can the problem be reproduced in a local development environment?

hi

I will test this.

hi

Try to rename your class as ScrollToTopComponent

What's your code?

hi

You can try to add a Layout-Hooks

https://docs.abp.io/en/abp/latest/UI/Blazor/Layout-Hooks

I want to use redis cache with IDistributedCache.

There will be no problem using Redis with IDistributedCache.

And I want to manage cache data to add, remove notification operation.

Redis as a backplane and use IDistributedCache to manage messages, I think there may be problems. This is not recommended.

hi

The requested service 'Volo.Abp.Account.Public.Web.Pages.Account.LogoutModel' has not been registered.

hi

Do you have CustomLogoutModel class?

If so please change the ExposeServices attribute just like CustomLoginModel.

[ExposeServices(typeof(CustomLoginModel), typeof(IdentityServerSupportedLoginModel))]
public class CustomLoginModel : IdentityServerSupportedLoginModel

hi

Do you have similar code in your web project?

Is the ExpireTimeSpan set to 365 days?

context.Services.AddAuthentication(options =>
{
    options.DefaultScheme = "Cookies";
    options.DefaultChallengeScheme = "oidc";
})
.AddCookie("Cookies", options =>
{
    options.ExpireTimeSpan = TimeSpan.FromDays(365);
})

hi

You can try this.

https://community.abp.io/posts/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n

hi

MyCompanyName.MyProjectName.Web.Host is pure UI project so it needs to redirect to AuthServer project.

This is by design as well.

Showing 7901 to 7910 of 11543 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.