-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my clients logouts after 30 minutes #240
Comments
@Jason9n Good afternoon. Could you check the token expiration settings in you Cognito UserPool app client? Refer below screenshot: Thanks, |
Hi there is there anyway to set the tokens lifetime in Program.cs Or when users login? |
@Jason9n Good morning. In case you are not using Cognito, then perhaps you opened this issue in the wrong repository. This repository is for reporting issues when using Amazon.AspNetCore.Identity.Cognito package in your ASP.NET applications for integration with Amazon Cognito service. You perhaps wanted to open issue at https://github.com/dotnet/aspnetcore/issues! Thanks, |
Hi @ashishdhingra , thanks for replying |
|
Describe the bug
Hi
I have a big problem with identity After logging, I stay login only for 30 minutes.
in my windows (localhost) it will works perfectly fine but when i publish the project and upload it on the host this problem will shows up
I'm using Identity in my project
AppDb:
public class AppDb : IdentityDbContext<AppUser, IdentityRole, string> { ..... }
AppUser:
and I've created a simple login
Login Code :
await _signInManager.SignInAsync(user, true, default);
(I even tried with password signin but no result)after 30 minutes its will logout but the cookie will remain
no matter what settings I use in the Program.cs it always logouts after 30 minutes
i found some related topics on github , but it should be fixed from asp core 2.2, why i have this problem on .NET 8
Program.cs:
even i tried this code on program.cs but no result:
And Again : in my windows (localhost) it will works perfectly fine but when i publish the project and upload it on the host this problem will shows up
Any help would be appreciated
sorry about my english
Regression Issue
Expected Behavior
stay logedin morethan 20 days
Current Behavior
no errors, at least i didnt get error
Reproduction Steps
Login Code:
AppDb:
public class AppDb : IdentityDbContext<AppUser, IdentityRole, string> { ..... }
AppUser:
Program.cs:
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Microsoft.AspNetCore.Identity.EntityFrameworkCore 8.0.10
Microsoft.AspNetCore.Identity.UI 8.0.10
Microsoft.EntityFrameworkCore.SqlServer 8.0.10
Microsoft.EntityFrameworkCore.Tools 8.0.10
Targeted .NET Platform
.NET 8
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: