warn: Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository[50] Using an in-memory repository. Keys will not be persisted to storage. warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[59] Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits. warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {0d25335d-06be-481d-b707-406bbc633114} may be persisted to storage in unencrypted form. Hosting environment: Production Content root path: F:\WebApps\SkillDorm-V1\API-SD\Authentication Now listening on: http://127.0.0.1:38164 Application started. Press Ctrl+C to shut down. warn: Authentication.Controllers.AccountController[0] external login info from googleresponse warn: Authentication.Controllers.AccountController[0] external login result from googleresponse --> {"Succeeded":true,"IsLockedOut":false,"IsNotAllowed":false,"RequiresTwoFactor":false} warn: Authentication.Controllers.AccountController[0] result succeeded from googleresposne fail: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMUBQQSS3THG", Request id "0HMUBQQSS3THG:00000004": An unhandled exception was thrown by the application. System.NullReferenceException: Object reference not set to an instance of an object. at Authentication.Controllers.AccountController.GoogleResponse() in C:\Program Files (x86)\Jenkins\workspace\SkillDorm-BE-V1\Authentication\Controllers\AccountController.cs:line 1404 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) fail: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMUBQQSS3THG", Request id "0HMUBQQSS3THG:00000005": An unhandled exception was thrown by the application. System.Exception: An error was encountered while handling the remote login. ---> System.Exception: The oauth state was missing or invalid. --- End of inner exception stack trace --- at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Builder.Extensions.UsePathBaseMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) warn: Authentication.Controllers.AccountController[0] external login info from linkedIneresponse warn: Authentication.Controllers.AccountController[0] external login result from linkedIneresponse --> {"Succeeded":true,"IsLockedOut":false,"IsNotAllowed":false,"RequiresTwoFactor":false} warn: Authentication.Controllers.AccountController[0] result succeeded from linkedIneresponse warn: Authentication.Controllers.AccountController[0] userUsername is m4mariaoni@yahoo.com warn: Authentication.Controllers.AccountController[0] checkuser {"FirstName":"Maria","MiddleName":null,"LastName":"Simeon-Godfrey","IsFirstLogin":true,"FullName":"Maria Simeon-Godfrey","RowVersion":"AAAAAAADU7I=","DateCreated":"2022-01-14T15:37:09.7311022","DateUpdated":"2022-08-19T09:49:46.0916752","CreatedBy":0,"UpdatedBy":null,"DeletedBy":0,"IsDeleted":false,"IsActive":true,"InstitutionId":0,"UserType":1,"LastPasswordChangeDate":null,"Id":341,"UserName":"m4mariaoni@yahoo.com","NormalizedUserName":"M4MARIAONI@YAHOO.COM","Email":"m4mariaoni@yahoo.com","NormalizedEmail":"m4mariaoni@yahoo.com","EmailConfirmed":false,"PasswordHash":null,"SecurityStamp":"BEYSGFRBOMDQETM53Z3EON5S4P4M6N4V","ConcurrencyStamp":"e2ddb672-7f6c-4a78-b252-5a0438b694f9","PhoneNumber":"08028276831","PhoneNumberConfirmed":false,"TwoFactorEnabled":false,"LockoutEnd":null,"LockoutEnabled":true,"AccessFailedCount":0} warn: Authentication.Controllers.AccountController[0] Newresult is {"FirstName":"Maria","MiddleName":null,"LastName":"Simeon-Godfrey","IsFirstLogin":true,"FullName":"Maria Simeon-Godfrey","RowVersion":"AAAAAAADU7I=","DateCreated":"2022-01-14T15:37:09.7311022","DateUpdated":"2022-08-19T09:49:46.0916752","CreatedBy":0,"UpdatedBy":null,"DeletedBy":0,"IsDeleted":false,"IsActive":true,"InstitutionId":0,"UserType":1,"LastPasswordChangeDate":null,"Id":341,"UserName":"m4mariaoni@yahoo.com","NormalizedUserName":"M4MARIAONI@YAHOO.COM","Email":"m4mariaoni@yahoo.com","NormalizedEmail":"m4mariaoni@yahoo.com","EmailConfirmed":false,"PasswordHash":null,"SecurityStamp":"BEYSGFRBOMDQETM53Z3EON5S4P4M6N4V","ConcurrencyStamp":"e2ddb672-7f6c-4a78-b252-5a0438b694f9","PhoneNumber":"08028276831","PhoneNumberConfirmed":false,"TwoFactorEnabled":false,"LockoutEnd":null,"LockoutEnabled":true,"AccessFailedCount":0} warn: Authentication.Controllers.AccountController[0] Role is STUDENT warn: Authentication.Controllers.AccountController[0] user: m4mariaoni@yahoo.com - Maria Simeon-Godfrey role is gotten warn: Authentication.Controllers.AccountController[0] serializedate = {"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiTWFyaWEiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3ByaW1hcnlzaWQiOiIzNDEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9naXZlbm5hbWUiOiJtNG1hcmlhb25pQHlhaG9vLmNvbSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6Im00bWFyaWFvbmlAeWFob28uY29tIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbG9jYWxpdHkiOiIwIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiU1RVREVOVCIsImV4cCI6MTY5NzI3OTE1NywiaXNzIjoic2tpbGxiZXRhX3JpdmV0X3N0dWRpbyIsImF1ZCI6IlNraWxsQmV0YVJpdmV0U3R1ZGlvIn0.g4DtSTAjpQ1vVdarDs6YrbYa8-NMk2QnkN0HP77BIYk","refreshToken":"9XN8MngtNmvo0r+rounU1v5h03R6bL0hMxKiZQhZGCI=","accesstoken_Expires":"2023-10-14T10:25:57Z","refreshToken_Expires":"2023-10-13T12:25:57.5406735+01:00","isFirstLogin":true,"role":"STUDENT","UserId":341,"StudentProfile":146,"UserName":"m4mariaoni@yahoo.com","InstitutionId":0,"FirstName":"Maria","LastName":"Simeon-Godfrey"}