- ABP Framework version: v6.0.2
- UI type: Blazor
- DB provider: EF Core /
- Tiered (MVC) or Identity Server Separated (Angular): yes / no
- Exception message and stack trace:
- Steps to reproduce the issue:"
2022-12-23 08:43:52.379 +08:00 [INF] Request finished HTTP/2 GET https://oa.aysdlrmyy.com:44314/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 20.2484ms
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: SettingManagement.Emailing
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: AbpIdentity.SettingManagement
2022-12-23 08:43:52.388 +08:00 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: AbpAccount.SettingManagement
25 Answer(s)
-
0
hi
Steps to reproduce the issue
Does your web server have WebSocket enabled?
-
0
-
0
Can you share a test URL?
-
0
can you remotely check this? we don't have a test URL on public network errores in administrator-service
Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'. at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
-
0
Please clear all logs, then reproduce the problem, and share the logs(blazor, gateway, microservice, authservce).
liming.ma@volosoft.com
Thanks
-
0
hi maliming The menu was found missing at about 2:30 I have sent the logs to your emali
-
0
OK, I will check your logs.
-
0
hi
Please set
IdentityModelEventSource.ShowPII = true;
IDX10223: Lifetime validation failed. The token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'.
There seems to be a problem with the application's clock
-
0
hi maliming put this line to witch project?
IdentityModelEventSource.ShowPII = true;
-
0
hi
administration-service.
-
0
hi Ma have sent logs to you
-
0
hi
I didn't get the logs yet
-
0
2022-12-23 16:38:11.279 +08:00 [INF] Failed to validate the token. Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo: '12/23/2022 04:40:03', Current time: '12/23/2022 08:38:11'. at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
-
0
hi
ValidTo: '12/23/2022 04:40:03', Current time: '12/23/2022 08:38:11'.
The time seems wrong?
-
0
all of the app,microservive on the same server.
2022-12-23 16:38:11.279 +08:00 [INF] Failed to validate the token.
the log time is correct but....
-
0
2022-12-23 16:38:11.279 +08:00 Current time: '12/23/2022 08:38:11'.
There seems to be an 8 hour time difference.
Please check your server environment .
-
0
-
0
if the logs time is corrcet i don't know why the administrator service is wrong
-
0
hi
You can test in your dev environment without IIS.
-
0
it hapens in my dev environment and product environment too. I found this problem in my dev environment run by TYE in the first and same in product environment in iis
-
0
ok,
How can I reproduce the problem?
Can you test it with a brand new template project?
-
0
it happened after that i migrate id 4to openiddict. I Would like to know where the.'current time' come from which I think it's didn't come from the system time
-
0
hi
I checked. The
current time'
is utcnow.Can you test it with a brand new template project?
-
0
Ok maliming I will do some research Tks
-
0
ok