{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Security/issues/651","labels_url":"https://api.github.com/repos/aspnet/Security/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Security/issues/651/comments","events_url":"https://api.github.com/repos/aspnet/Security/issues/651/events","html_url":"https://github.com/aspnet/Security/issues/651","id":126155652,"number":651,"title":"rc1-final  HttpContext.Authentication.SignInAsync() do not work who can help me  thanks","user":{"login":"717009629","id":16289643,"avatar_url":"https://avatars.githubusercontent.com/u/16289643?v=3","gravatar_id":"","url":"https://api.github.com/users/717009629","html_url":"https://github.com/717009629","followers_url":"https://api.github.com/users/717009629/followers","following_url":"https://api.github.com/users/717009629/following{/other_user}","gists_url":"https://api.github.com/users/717009629/gists{/gist_id}","starred_url":"https://api.github.com/users/717009629/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/717009629/subscriptions","organizations_url":"https://api.github.com/users/717009629/orgs","repos_url":"https://api.github.com/users/717009629/repos","events_url":"https://api.github.com/users/717009629/events{/privacy}","received_events_url":"https://api.github.com/users/717009629/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Security/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/Security/milestones/12","html_url":"https://github.com/aspnet/Security/milestones/Discussion","labels_url":"https://api.github.com/repos/aspnet/Security/milestones/12/labels","id":1300196,"number":12,"title":"Discussion","description":null,"creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2015-09-10T22:38:46Z","updated_at":"2016-01-12T12:09:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-12T11:12:00Z","updated_at":"2016-01-12T12:15:51Z","closed_at":null,"body":"rc1-final  HttpContext.Authentication.SignInAsync() do not work, who can help me  thanks!!!!\r\n\r\n```C#\r\n public class Startup\r\n    {\r\n        public void ConfigureServices(IServiceCollection services)\r\n        {\r\n            services.AddAuthentication();\r\n        }\r\n\r\n        public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)\r\n        {\r\n            loggerfactory.AddConsole(LogLevel.Information);\r\n\r\n            app.UseCookieAuthentication(options =>\r\n            {\r\n                options.AutomaticAuthenticate = true;\r\n            });\r\n            app.Run(async context =>\r\n            {\r\n                if (!context.User.Identities.Any(identity => identity.IsAuthenticated))\r\n                {\r\n                    var user = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(ClaimTypes.Name, \"bob\") }, CookieAuthenticationDefaults.AuthenticationScheme));\r\n                    await context.Authentication.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, user);\r\n                    context.Response.ContentType = \"text/plain\";\r\n                    await context.Response.WriteAsync(\"Hello First timer\");\r\n                    return;\r\n                }\r\n               context.Response.ContentType = \"text/plain\";\r\n                await context.Response.WriteAsync(\"Hello old timer\");\r\n            });\r\n        }\r\n        public static void Main(string[] args) => WebApplication.Run<Startup>(args);\r\n    }\r\n}\r\n```\r\n\r\n```JSON\r\n\"dependencies\": {\r\n    \"Microsoft.AspNet.Authentication.Cookies\": \"1.0.0-rc1-final\",\r\n    \"Microsoft.AspNet.DataProtection\": \"1.0.0-rc1-final\",\r\n    \"Microsoft.AspNet.IISPlatformHandler\": \"1.0.0-rc1-final\",\r\n    \"Microsoft.AspNet.Server.Kestrel\": \"1.0.0-rc1-final\",\r\n    \"Microsoft.Extensions.Logging.Console\": \"1.0.0-rc1-final\"\r\n  }\r\n```\r\n![xl b p51pjy 6f3 d4swt m](https://cloud.githubusercontent.com/assets/16289643/12262331/3decb374-b962-11e5-97d7-8138b1301c1d.png)\r\nAfter SignInAsync ,  the user  is not Authenticated!!!!!!!!"},"comment":{"url":"https://api.github.com/repos/aspnet/Security/issues/comments/170894184","html_url":"https://github.com/aspnet/Security/issues/651#issuecomment-170894184","issue_url":"https://api.github.com/repos/aspnet/Security/issues/651","id":170894184,"user":{"login":"717009629","id":16289643,"avatar_url":"https://avatars.githubusercontent.com/u/16289643?v=3","gravatar_id":"","url":"https://api.github.com/users/717009629","html_url":"https://github.com/717009629","followers_url":"https://api.github.com/users/717009629/followers","following_url":"https://api.github.com/users/717009629/following{/other_user}","gists_url":"https://api.github.com/users/717009629/gists{/gist_id}","starred_url":"https://api.github.com/users/717009629/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/717009629/subscriptions","organizations_url":"https://api.github.com/users/717009629/orgs","repos_url":"https://api.github.com/users/717009629/repos","events_url":"https://api.github.com/users/717009629/events{/privacy}","received_events_url":"https://api.github.com/users/717009629/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T12:15:51Z","updated_at":"2016-01-12T12:15:51Z","body":"@blowdart  \r\nbut  i have  added an authentication type\r\nvar user = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(ClaimTypes.Name, \"bob\") }, CookieAuthenticationDefaults.AuthenticationScheme));\r\n\r\nthe code above can work？  my english is not good"}}