ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
Hi, We are trying to change the user's session cookie expiration from "session" to a limited time frame.
We added the following in our BlazorModule.cs implementation of the ConfigureServices() method, but the cookie always still has an expiration of "Session" when we view the cookie in the browser tools. What might we be missing?
Thanks in advance...
context.Services.ConfigureApplicationCookie(ops =>
{
ops.Cookie.Name = "AspNetCore.Identity.Application";
ops.ExpireTimeSpan = TimeSpan.FromMinutes(1);
ops.SlidingExpiration = true;
});
Thanks for confirming @maliming
I found the problem in \Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web\Pages\Account\Components\ProfileManagementGroup\ProfilePicture\Default.js (see screenshot below)
Here is what changed from 7.0.1 to 7.2.1 that causes the issue. We did an override as a temp workaround for now, but would like confirmation of a fix in a future update.
ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
When saving a selected image from 'My Account' -> 'Profile Picture', the picture does not save. No errors occur on the UI or in the logs.
I reproduced the issue with a newly templated project:
abp new ProfilePicIssue -u blazor-server -v 7.2.1
When I test with 7.0.1, everything works as expected.
abp new ProfilePicIssue -u blazor-server -v 7.0.1
Something seems to have broke from v7.0.1 to v7.2.1.
Please provide confirmation of a fix as well as a possible work around for v7.2.1
Thanks for confirming @liangshiwei
We would like support for a Idle Session Timeout with a configurable timeout duration and a prompt to the user asking if they want to continue their session.
Appreciate your consideration.
Hi @liangshiwei ,
Thank you! This resolved the issue for us and also taught us a few things about ABP overrides.
I will close the issue.
ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
Hi, We are seeing the following repeated many times in our log every time a user logs in. Is this standard behavior? The information doesn't note what requires authentication. Just curious if there is something we should be changing. We are using the default ABP templated logging settings in program.cs
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
2023-06-25 00:00:10.438 +00:00 [INF] AuthenticationScheme: Identity.Application was challenged.
2023-06-25 00:00:10.438 +00:00 [INF] Request finished HTTP/1.1 GET https://qa.nvisiononline.net/ - - - 302 - - 3.3881ms
2023-06-25 00:00:26.884 +00:00 [INF] Request starting HTTP/1.1 GET https://nvisionweb.azurewebsites.net/ - -
2023-06-25 00:00:26.887 +00:00 [INF] Authorization failed. These requirements were not met:
ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
Hi, on ABP Commercial 7.2.1, we are receiving the following. We reproduced the error with a newly created solution.
abp new ABP.Test -u blazor-server -v 7.2.1 -theme lepton
Please advise.
Regards, Brian