{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3027","repository_url":"https://api.github.com/repos/IdentityServer/IdentityServer3","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3027/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3027/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3027/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/3027","id":163068197,"number":3027,"title":"ASP.NET Core 1.0 compatibility","user":{"login":"ArgusDev","id":9938364,"avatar_url":"https://avatars.githubusercontent.com/u/9938364?v=3","gravatar_id":"","url":"https://api.github.com/users/ArgusDev","html_url":"https://github.com/ArgusDev","followers_url":"https://api.github.com/users/ArgusDev/followers","following_url":"https://api.github.com/users/ArgusDev/following{/other_user}","gists_url":"https://api.github.com/users/ArgusDev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArgusDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArgusDev/subscriptions","organizations_url":"https://api.github.com/users/ArgusDev/orgs","repos_url":"https://api.github.com/users/ArgusDev/repos","events_url":"https://api.github.com/users/ArgusDev/events{/privacy}","received_events_url":"https://api.github.com/users/ArgusDev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-06-30T02:29:23Z","updated_at":"2016-08-11T18:00:57Z","closed_at":"2016-07-05T07:50:06Z","body":"- [x] I read and understood how to enable [logging](https://identityserver.github.io/Documentation/docsv2/configuration/logging.html)\r\n\r\n### Question / Issue\r\n\r\nIdentityServer3 worked Ok with ASP.NET 5 RC1 and RC2 however after I upgraded it ASP.NET Core 1.0 RTM it does not work anymore.\r\nIt looks like IdentityServer3 looses requests body. First I had the problem exactly how it was raised previously with [AntiForgery validation](https://github.com/IdentityServer/IdentityServer3/issues/1731) that I could bypass by disabling logging. It's reproducible with upgraded (to ASP.NET Core 1.0) [sample](https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/AspNet5/src/IdentityServer).\r\nHowever the problem affects other areas as well. For example during \"parsing Basic Authentication secret\" it says \"No secret in post body found\".\r\n\r\n\r\n### Relevant parts of the log file\r\n\r\n```\r\n----------------------------------------\r\nMessage: Start client validation\r\nCategory: IdentityServer3.Core.Validation.ClientSecretValidator\r\n----------------------------------------\r\nMessage: Start parsing Basic Authentication secret\r\nCategory: IdentityServer3.Core.Validation.BasicAuthenticationSecretParser\r\n----------------------------------------\r\nMessage: Start parsing for secret in post body\r\nCategory: IdentityServer3.Core.Validation.PostBodySecretParser\r\n----------------------------------------\r\nMessage: No secret in post body found\r\nCategory: IdentityServer3.Core.Validation.PostBodySecretParser\r\n----------------------------------------\r\nMessage: Start parsing for X.509 certificate\r\nCategory: IdentityServer3.Core.Validation.X509CertificateSecretParser\r\n----------------------------------------\r\nMessage: client_id is not found in post body\r\nCategory: IdentityServer3.Core.Validation.X509CertificateSecretParser\r\n----------------------------------------\r\nMessage: Parser found no secret\r\nCategory: IdentityServer3.Core.Validation.SecretParser\r\n----------------------------------------\r\nMessage: {\r\n  \"Category\": \"ClientAuthentication\",\r\n  \"Name\": \"Client authentication failure\",\r\n  \"EventType\": \"Failure\",\r\n  \"Id\": 1051,\r\n  \"Message\": \"No client id or secret found\",\r\n  \"Details\": {\r\n    \"ClientId\": \"unknown\",\r\n    \"ClientType\": \"Client\"\r\n  },\r\n  \"Context\": {\r\n    \"ActivityId\": \"f906e20f-45f9-4448-82ea-10b85921b41a\",\r\n    \"TimeStamp\": \"2016-06-30T01:51:51.149961+00:00\",\r\n    \"ProcessId\": 12784,\r\n    \"MachineName\": \"MyMachine\",\r\n    \"RemoteIpAddress\": \"fe80::557d:7cf2:bd52:7cdd%4\"\r\n  }\r\n}\r\n\r\nCategory: Events\r\n----------------------------------------\r\nMessage: No client secret found\r\nCategory: IdentityServer3.Core.Validation.ClientSecretValidator\r\n----------------------------------------\r\nMessage: {\r\n  \"Category\": \"Endpoints\",\r\n  \"Name\": \"Endpoint failure\",\r\n  \"EventType\": \"Failure\",\r\n  \"Id\": 3001,\r\n  \"Message\": \"invalid_client\",\r\n  \"Details\": {\r\n    \"EndpointName\": \"token\"\r\n  },\r\n  \"Context\": {\r\n    \"ActivityId\": \"f906e20f-45f9-4448-82ea-10b85921b41a\",\r\n    \"TimeStamp\": \"2016-06-30T01:51:51.1569609+00:00\",\r\n    \"ProcessId\": 12784,\r\n    \"MachineName\": \"MyMachine\",\r\n    \"RemoteIpAddress\": \"fe80::557d:7cf2:bd52:7cdd%4\"\r\n  }\r\n}\r\nCategory: Events\r\n----------------------------------------\r\n```\r\n\r\nWhat can be done to make it work with ASP.NET Core 1.0?\r\n\r\nThank you very much.\r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/239240642","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/3027#issuecomment-239240642","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/3027","id":239240642,"user":{"login":"asteffes","id":444194,"avatar_url":"https://avatars.githubusercontent.com/u/444194?v=3","gravatar_id":"","url":"https://api.github.com/users/asteffes","html_url":"https://github.com/asteffes","followers_url":"https://api.github.com/users/asteffes/followers","following_url":"https://api.github.com/users/asteffes/following{/other_user}","gists_url":"https://api.github.com/users/asteffes/gists{/gist_id}","starred_url":"https://api.github.com/users/asteffes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteffes/subscriptions","organizations_url":"https://api.github.com/users/asteffes/orgs","repos_url":"https://api.github.com/users/asteffes/repos","events_url":"https://api.github.com/users/asteffes/events{/privacy}","received_events_url":"https://api.github.com/users/asteffes/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T18:00:57Z","updated_at":"2016-08-11T18:00:57Z","body":"I'm still experiencing this problem. \r\n\r\nTo recreate it in my solution I can un-comment the EnableHttpLogging:\r\n\r\n` LoggingOptions = new LoggingOptions {\r\n                    //EnableHttpLogging = true, //this must remain commented out until we upgrade Core. This will cause anti-forgery token\r\n                    //https://github.com/IdentityServer/IdentityServer3/issues/3027\r\n                    EnableKatanaLogging = true,\r\n                    EnableWebApiDiagnostics = true,\r\n                    WebApiDiagnosticsIsVerbose = true,\r\n                }`\r\n\r\n\r\nProject.json:\r\n\r\n`{\r\n    \"buildOptions\": {\r\n        \"emitEntryPoint\": true,\r\n        \"preserveCompilationContext\": true\r\n    },\r\n    \"configurations\": {\r\n        \"Development\": {}\r\n    },\r\n    \"dependencies\": {\r\n        \"Autofac\": \"4.0.0-rc1-177\",\r\n        \"Autofac.Extensions.DependencyInjection\": \"4.0.0-rc1-177\",\r\n        \"IdentityServer3\": \"2.1.1\",\r\n        \"IdentityServer3.Integration.AspNetCore\": \"1.0.0\",\r\n         \"Microsoft.ApplicationInsights.AspNetCore\": \"1.0.0\",\r\n        \"Microsoft.AspNet.Identity.Core\": \"2.2.1\",\r\n        \"Microsoft.AspNet.Identity.EntityFramework\": \"2.2.1\",\r\n        \"Microsoft.AspNetCore.Diagnostics\": \"1.0.0\",\r\n        \"Microsoft.AspNetCore.Mvc\": \"1.0.0\",\r\n        \"Microsoft.AspNetCore.Razor.Tools\": {\r\n            \"type\": \"build\",\r\n            \"version\": \"1.0.0-preview2-final\"\r\n        },\r\n        \"Microsoft.AspNetCore.Server.IISIntegration\": \"1.0.0\",\r\n        \"Microsoft.AspNetCore.Server.Kestrel\": \"1.0.0\",\r\n        \"Microsoft.AspNetCore.StaticFiles\": \"1.0.0\",\r\n        \"Microsoft.Extensions.Configuration.EnvironmentVariables\": \"1.0.0\",\r\n        \"Microsoft.Extensions.Configuration.Json\": \"1.0.0\",\r\n        \"Microsoft.Extensions.Logging\": \"1.0.0\",\r\n        \"Microsoft.Extensions.Logging.Console\": \"1.0.0\",\r\n        \"Microsoft.Extensions.Logging.Debug\": \"1.0.0\",\r\n        \"Microsoft.Extensions.Options.ConfigurationExtensions\": \"1.0.0\",\r\n        \"Microsoft.VisualStudio.Web.BrowserLink.Loader\": \"14.0.0\",\r\n        \"Serilog.Extensions.Logging\": \"1.0.0\",\r\n        \"Serilog.Sinks.RollingFile\": \"2.1.0\"\r\n    },\r\n    \"frameworks\": {\r\n        \"net451\": {}\r\n    },\r\n    \"publishOptions\": {\r\n        \"include\": [\r\n            \"wwwroot\",\r\n            \"Views\",\r\n            \"Areas/**/Views\",\r\n            \"appsettings.json\",\r\n            \"appsettings.Development.json\",\r\n            \"appsettings.Staging.json\",\r\n            \"appsettings.Release.json\"\r\n\r\n        ]\r\n    },\r\n    \"runtimeOptions\": {\r\n        \"configProperties\": {\r\n            \"System.GC.Server\": true\r\n        }\r\n    },\r\n    \"scripts\": {\r\n        \"prepublish\": [ \"npm install\", \"bower install\", \"gulp clean\", \"gulp min\" ],\r\n        \"postpublish\": [ \"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%\" ]\r\n    },\r\n    \"tools\": {\r\n        \"BundlerMinifier.Core\": \"2.0.238\",\r\n        \"Microsoft.AspNetCore.Razor.Tools\": \"1.0.0-preview2-final\",\r\n        \"Microsoft.AspNetCore.Server.IISIntegration.Tools\": \"1.0.0-preview2-final\"\r\n    }\r\n}\r\n`"}}
{"actor":{"display_login":"asteffes"}}