{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/351","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/351/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/351/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/351","id":42406636,"number":351,"title":"Invalid CacheControl running /core/login?message=","user":{"login":"johnkors","id":206726,"avatar_url":"https://avatars.githubusercontent.com/u/206726?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkors","html_url":"https://github.com/johnkors","followers_url":"https://api.github.com/users/johnkors/followers","following_url":"https://api.github.com/users/johnkors/following{/other_user}","gists_url":"https://api.github.com/users/johnkors/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkors/subscriptions","organizations_url":"https://api.github.com/users/johnkors/orgs","repos_url":"https://api.github.com/users/johnkors/repos","events_url":"https://api.github.com/users/johnkors/events{/privacy}","received_events_url":"https://api.github.com/users/johnkors/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2014-09-10T12:21:33Z","updated_at":"2015-11-06T04:28:11Z","closed_at":"2014-09-12T16:36:01Z","body":"Related to:\r\n```\r\n <package id=\"Thinktecture.IdentityServer.v3\" version=\"1.0.0-beta1-1\" targetFramework=\"net45\" />\r\n```\r\n\r\nRunning the MVC CodeFlowClient Manual app, I get the following stacktrace from IdSrv3 , on the url:\r\n\r\nhttp://localhost:3333/core/login?message=LONGENCODEDSTRINGHERE\r\n \r\n```\r\n[ArgumentException: Property value for CacheControl is not valid. Value=no-store, no-cache, max-age=0, private.]\r\n   System.Web.HttpResponse.set_CacheControl(String value) +3115138\r\n   System.Web.HttpResponseWrapper.set_CacheControl(String value) +9\r\n   Microsoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders.Set(String key, String[] values) +277\r\n   Microsoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders.set_Item(String key, String[] value) +104\r\n   Microsoft.Owin.HeaderDictionary.System.Collections.Generic.IDictionary<System.String,System.String[]>.set_Item(String key, String[] value) in c:\\etc\\Dropbox\\source\\Thinktecture\\Thinktecture.IdentityServer.v3\\Core\\source\\Core\\Hosting\\AutofacScope.cs:0\r\n   System.Web.Http.Owin.HttpMessageHandlerAdapter.SendResponseMessageAsync(HttpRequestMessage request, HttpResponseMessage response, IOwinResponse owinResponse, CancellationToken cancellationToken) in c:\\etc\\Dropbox\\source\\Thinktecture\\Thinktecture.IdentityServer.v3\\Core\\source\\Core\\Hosting\\AutofacScope.cs:0\r\n   System.Web.Http.Owin.<InvokeCore>d__0.MoveNext() in c:\\etc\\Dropbox\\source\\Thinktecture\\Thinktecture.IdentityServer.v3\\Core\\source\\Core\\Connect\\ResponseHandling\\AuthorizeResponseGenerator.cs:0\r\n   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93\r\n   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52\r\n   System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21\r\n   Thinktecture.IdentityServer.Core.Hosting.<Invoke>d__4.MoveNext() in c:\\etc\\Dropbox\\source\\Thinktecture\\Thinktecture.IdentityServer.v3\\Core\\source\\Core\\Hosting\\AutofacContainerMiddleware.cs:39\r\n```\r\n\r\nOur ```Startup.cs```\r\n\r\n```\r\npublic void Configuration(IAppBuilder app)\r\n{\r\n\tapp.Map(\"/core\", coreApp =>\r\n\t{\r\n\t\tvar factory = InMemoryFactory.Create(\r\n\t\t\tclients: Clients.Get(),\r\n\t\t\tscopes: Scopes.Get());\r\n\r\n\t\tvar userService = new MyOwnUserService();\r\n\t\tfactory.UserService = Registration.RegisterFactory<IUserService>(() => userService);\r\n\r\n\t\tvar options = new IdentityServerOptions\r\n\t\t{\r\n\t\t\tIssuerUri = \"https://idsrv3.com\",\r\n\t\t\tSiteName = \"Id Server Poc\",\r\n\t\t\tPublicHostName = ThinkTectureConfig.PublicHostName,\r\n\t\t\tSigningCertificate = Certificate.Get(),\r\n\t\t\tFactory = factory,\r\n\t\t\tAdditionalIdentityProviderConfiguration = ConfigureAdditionalIdentityProviders,\r\n\t\t\tCorsPolicy = CorsPolicy.AllowAll\r\n\t\t};\r\n\r\n\t\tcoreApp.UseIdentityServer(options);\r\n\t});\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/154282343","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/351#issuecomment-154282343","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/351","id":154282343,"user":{"login":"fp5885","id":10967461,"avatar_url":"https://avatars.githubusercontent.com/u/10967461?v=3","gravatar_id":"","url":"https://api.github.com/users/fp5885","html_url":"https://github.com/fp5885","followers_url":"https://api.github.com/users/fp5885/followers","following_url":"https://api.github.com/users/fp5885/following{/other_user}","gists_url":"https://api.github.com/users/fp5885/gists{/gist_id}","starred_url":"https://api.github.com/users/fp5885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fp5885/subscriptions","organizations_url":"https://api.github.com/users/fp5885/orgs","repos_url":"https://api.github.com/users/fp5885/repos","events_url":"https://api.github.com/users/fp5885/events{/privacy}","received_events_url":"https://api.github.com/users/fp5885/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T04:28:11Z","updated_at":"2015-11-06T04:28:11Z","body":"My bad. I thought I was on an IdentityManager git repo. Thanks for the reply and the great toolset. If anyone stumbles into this... I found the problem. Creating a new VS project installs some old versions of packages that are not compatible with IdentityManager. Make sure you update all the installed packages after you create the project. Especially Microsoft.Owin.Host.SystemWeb. I went through them one at a time and after updating this one it started working. "}}