anhlee24

Results 10 comments of anhlee24

In Startup.Auth.cs: private void ConfigureAuth(IApplicationBuilder app) { _userManager = app.ApplicationServices.GetRequiredService(); _signInManager = app.ApplicationServices.GetRequiredService(); } private async Task GetIdentity(string username, string password) { var result = await _signInManager.PasswordSignInAsync(username, password, false, lockoutOnFailure:...

@Vaylandt yes, i am try to find a solution, have you resolve it?

@sicollins The IdentityDBContext will be initialize as Singleton or Static, so the UserManager, SignInManager will get the old context. ex: if you update password, the signInManager will use the old...

@sicollins Sorry, i mean if you pass those services UserManager, RoleManager, SignInManager by DI in the main Configure() method in Startup.cs or Startup.Auth.cs. Those service will be singleton instance.

i am new in token. can i ask a question? when will i send a request to RefreshPath?

@MihaMarkic you mean that if i set the expiration time by 30m. So i will setup the Client (SPA) to send a request to RefreshPath to keep it alive after...

@MihaMarkic Hi, I want to handle the acccess_token expiraton at server side, how can i handle it? The response header contain: "Bearer error="invalid_token", error_description="The token is expired", but i don't...

@MihaMarkic Yes. But i want to handle the token expiration in Client (SPA) to redirect to Login page or Unauthorized page, etc ...

@MihaMarkic Thank you so much :).