{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet-architecture/eShopOnContainers/issues/329","repository_url":"https://api.github.com/repos/dotnet-architecture/eShopOnContainers","labels_url":"https://api.github.com/repos/dotnet-architecture/eShopOnContainers/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/dotnet-architecture/eShopOnContainers/issues/329/comments","events_url":"https://api.github.com/repos/dotnet-architecture/eShopOnContainers/issues/329/events","html_url":"https://github.com/dotnet-architecture/eShopOnContainers/issues/329","id":257554587,"number":329,"title":"[BUG] Error when trying to authenticate/login in MVC and SPA apps (IdentityServer 4 and ASP.NET Identity 2.0 related)","user":{"login":"CESARDELATORRE","id":1712635,"avatar_url":"https://avatars0.githubusercontent.com/u/1712635?v=4","gravatar_id":"","url":"https://api.github.com/users/CESARDELATORRE","html_url":"https://github.com/CESARDELATORRE","followers_url":"https://api.github.com/users/CESARDELATORRE/followers","following_url":"https://api.github.com/users/CESARDELATORRE/following{/other_user}","gists_url":"https://api.github.com/users/CESARDELATORRE/gists{/gist_id}","starred_url":"https://api.github.com/users/CESARDELATORRE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESARDELATORRE/subscriptions","organizations_url":"https://api.github.com/users/CESARDELATORRE/orgs","repos_url":"https://api.github.com/users/CESARDELATORRE/repos","events_url":"https://api.github.com/users/CESARDELATORRE/events{/privacy}","received_events_url":"https://api.github.com/users/CESARDELATORRE/received_events","type":"User","site_admin":false},"labels":[{"id":455886069,"url":"https://api.github.com/repos/dotnet-architecture/eShopOnContainers/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"unaizorrilla","id":1630008,"avatar_url":"https://avatars0.githubusercontent.com/u/1630008?v=4","gravatar_id":"","url":"https://api.github.com/users/unaizorrilla","html_url":"https://github.com/unaizorrilla","followers_url":"https://api.github.com/users/unaizorrilla/followers","following_url":"https://api.github.com/users/unaizorrilla/following{/other_user}","gists_url":"https://api.github.com/users/unaizorrilla/gists{/gist_id}","starred_url":"https://api.github.com/users/unaizorrilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unaizorrilla/subscriptions","organizations_url":"https://api.github.com/users/unaizorrilla/orgs","repos_url":"https://api.github.com/users/unaizorrilla/repos","events_url":"https://api.github.com/users/unaizorrilla/events{/privacy}","received_events_url":"https://api.github.com/users/unaizorrilla/received_events","type":"User","site_admin":false},"assignees":[{"login":"unaizorrilla","id":1630008,"avatar_url":"https://avatars0.githubusercontent.com/u/1630008?v=4","gravatar_id":"","url":"https://api.github.com/users/unaizorrilla","html_url":"https://github.com/unaizorrilla","followers_url":"https://api.github.com/users/unaizorrilla/followers","following_url":"https://api.github.com/users/unaizorrilla/following{/other_user}","gists_url":"https://api.github.com/users/unaizorrilla/gists{/gist_id}","starred_url":"https://api.github.com/users/unaizorrilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unaizorrilla/subscriptions","organizations_url":"https://api.github.com/users/unaizorrilla/orgs","repos_url":"https://api.github.com/users/unaizorrilla/repos","events_url":"https://api.github.com/users/unaizorrilla/events{/privacy}","received_events_url":"https://api.github.com/users/unaizorrilla/received_events","type":"User","site_admin":false},{"login":"ramonTC","id":16465474,"avatar_url":"https://avatars3.githubusercontent.com/u/16465474?v=4","gravatar_id":"","url":"https://api.github.com/users/ramonTC","html_url":"https://github.com/ramonTC","followers_url":"https://api.github.com/users/ramonTC/followers","following_url":"https://api.github.com/users/ramonTC/following{/other_user}","gists_url":"https://api.github.com/users/ramonTC/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonTC/subscriptions","organizations_url":"https://api.github.com/users/ramonTC/orgs","repos_url":"https://api.github.com/users/ramonTC/repos","events_url":"https://api.github.com/users/ramonTC/events{/privacy}","received_events_url":"https://api.github.com/users/ramonTC/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-09-13T23:51:59Z","updated_at":"2017-09-14T11:41:39Z","closed_at":"2017-09-14T11:41:38Z","author_association":"COLLABORATOR","body":"Regression bug to solve asap.\r\n\r\nRight after trying to login with user/password, you get the following error:\r\n\r\n**InvalidOperationException: sub claim is missing\r\nIdentityServer4.IdentityServerPrincipal.AssertRequiredClaims(ClaimsPrincipal principal)**\r\nIdentityServer4.Hosting.IdentityServerAuthenticationService.AugmentPrincipal(ClaimsPrincipal principal)\r\nIdentityServer4.Hosting.IdentityServerAuthenticationService+<SignInAsync>d__7.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Identity.SignInManager+<SignInAsync>d__30.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nIdentityServer4.Quickstart.UI.Controllers.AccountController+<Login>d__7.MoveNext() in D:\\GITREPOS\\eShopOnContainers-dev\\src\\Services\\Identity\\Identity.API\\Controllers\\AccountController.cs\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nSystem.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeActionMethodAsync>d__12.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeNextActionFilterAsync>d__10.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)\r\nMicrosoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeInnerFilterAsync>d__14.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeNextResourceFilter>d__22.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nMicrosoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)\r\nMicrosoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)\r\nMicrosoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeFilterPipelineAsync>d__17.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeAsync>d__15.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Builder.RouterMiddleware+<Invoke>d__4.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nIdentityServer4.Hosting.IdentityServerMiddleware+<Invoke>d__4.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__6.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Cors.Infrastructure.CorsMiddleware+<Invoke>d__7.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nIdentityServer4.Hosting.BaseUrlMiddleware+<Invoke>d__3.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__6.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.eShopOnContainers.Services.Identity.Startup+<>c+<<Configure>b__5_0>d.MoveNext() in D:\\GITREPOS\\eShopOnContainers-dev\\src\\Services\\Identity\\Identity.API\\Startup.cs\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware+<Invoke>d__4.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware+<Invoke>d__6.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nMicrosoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware+<Invoke>d__6.MoveNext()\r\nSystem.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\nSystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\nMicrosoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()"}}
{"actor":{"display_login":"ramonTC"}}