2024-03-11 17:04:43.778 +05:30 WRN Using an in-memory repository. Keys will not be persisted to storage. 2024-03-11 17:04:43.837 +05:30 WRN Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits. 2024-03-11 17:04:43.858 +05:30 INF Creating key {580838aa-a07d-418c-bf67-8f22dede9d25} with creation date 2024-03-11 11:34:43Z, activation date 2024-03-11 11:34:43Z, and expiration date 2024-06-09 11:34:43Z. 2024-03-11 17:04:43.874 +05:30 WRN No XML encryptor configured. Key {580838aa-a07d-418c-bf67-8f22dede9d25} may be persisted to storage in unencrypted form. 2024-03-11 17:04:43.941 +05:30 INF Application started. Press Ctrl+C to shut down. 2024-03-11 17:04:43.941 +05:30 INF Hosting environment: Production 2024-03-11 17:04:43.942 +05:30 INF Content root path: C:\inetpub\wwwroot\Sang.Employee.Web.Api 2024-03-11 17:04:43.970 +05:30 8b907ed4-a2a1-42df-b01b-3db60153515c INF Request starting HTTP/1.1 OPTIONS http://103.120.178.195/Sang.Employee.Web.Api/Employee/UpsertEmployee - null null 2024-03-11 17:04:44.091 +05:30 fe7bb329-7806-4fba-b381-503b382b5fa6 INF CORS policy execution successful. 2024-03-11 17:04:44.103 +05:30 fe7bb329-7806-4fba-b381-503b382b5fa6 INF Request finished HTTP/1.1 OPTIONS http://103.120.178.195/Sang.Employee.Web.Api/Employee/UpsertEmployee - 204 null null 136.2557ms 2024-03-11 17:04:44.309 +05:30 60e81502-65dc-4e18-8207-636a9b1c945d INF Request starting HTTP/1.1 POST http://103.120.178.195/Sang.Employee.Web.Api/Employee/UpsertEmployee - application/json 173 2024-03-11 17:04:44.331 +05:30 60e81502-65dc-4e18-8207-636a9b1c945d INF Failed to validate the token.Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'. ---> Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'. at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken.ReadToken(String encodedJson) at Microsoft.IdentityModel.JsonWebTokens.JsonWebToken..ctor(String jwtEncodedString) at Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.ReadToken(String token, TokenValidationParameters validationParameters) --- End of inner exception stack trace --- 2024-03-11 17:04:44.347 +05:30 60e81502-65dc-4e18-8207-636a9b1c945d INF Bearer was not authenticated. Failure message: IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'. 2024-03-11 17:04:44.351 +05:30 a80dacaa-6c30-402c-9939-b3d36e8c18ce INF CORS policy execution successful. 2024-03-11 17:04:44.364 +05:30 a80dacaa-6c30-402c-9939-b3d36e8c18ce INF Authorization failed. These requirements were not met: DenyAnonymousAuthorizationRequirement: Requires an authenticated user. 2024-03-11 17:04:44.375 +05:30 a80dacaa-6c30-402c-9939-b3d36e8c18ce INF AuthenticationScheme: Bearer was challenged. 2024-03-11 17:04:44.386 +05:30 a80dacaa-6c30-402c-9939-b3d36e8c18ce INF Request finished HTTP/1.1 POST http://103.120.178.195/Sang.Employee.Web.Api/Employee/UpsertEmployee - 401 null null 77.3125ms 2024-03-11 17:04:44.736 +05:30 eb059b4b-6c4b-41f4-9743-1f3c9f69ecd9 INF Request starting HTTP/1.1 GET http://103.120.178.195/Sang.Employee.Web.Api/Security/RegenerateTokens - null null 2024-03-11 17:04:44.746 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF CORS policy execution successful. 2024-03-11 17:04:44.750 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF Executing endpoint 'Sang.Security.WebApi.Controllers.SecurityController.RegenerateTokens (Sang.Security.WebApi)' 2024-03-11 17:04:44.791 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF Route matched with {action = "RegenerateTokens", controller = "Security"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Sang.Security.WebApi.Models.Tokens]] RegenerateTokens(System.String) on controller Sang.Security.WebApi.Controllers.SecurityController (Sang.Security.WebApi). 2024-03-11 17:04:44.829 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. 2024-03-11 17:04:44.913 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF Executed action Sang.Security.WebApi.Controllers.SecurityController.RegenerateTokens (Sang.Security.WebApi) in 117.0878ms 2024-03-11 17:04:44.913 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF Executed endpoint 'Sang.Security.WebApi.Controllers.SecurityController.RegenerateTokens (Sang.Security.WebApi)' 2024-03-11 17:04:44.914 +05:30 430eb234-87cf-4953-97f8-646b29a1777d INF Request finished HTTP/1.1 GET http://103.120.178.195/Sang.Employee.Web.Api/Security/RegenerateTokens - 400 null application/problem+json; charset=utf-8 178.2783ms 2024-03-11 17:15:42.658 +05:30 INF Application is shutting down...