{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2360","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2360/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2360/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2360/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2360","id":124851128,"number":2360,"title":"Twitter authentication issue","user":{"login":"dahlsailrunner","id":8389867,"avatar_url":"https://avatars.githubusercontent.com/u/8389867?v=3","gravatar_id":"","url":"https://api.github.com/users/dahlsailrunner","html_url":"https://github.com/dahlsailrunner","followers_url":"https://api.github.com/users/dahlsailrunner/followers","following_url":"https://api.github.com/users/dahlsailrunner/following{/other_user}","gists_url":"https://api.github.com/users/dahlsailrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/dahlsailrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahlsailrunner/subscriptions","organizations_url":"https://api.github.com/users/dahlsailrunner/orgs","repos_url":"https://api.github.com/users/dahlsailrunner/repos","events_url":"https://api.github.com/users/dahlsailrunner/events{/privacy}","received_events_url":"https://api.github.com/users/dahlsailrunner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T22:12:27Z","updated_at":"2016-01-05T14:25:29Z","closed_at":null,"body":"Hi -- \r\n\r\nI'm having a problem with Twitter authentication via id server3 -- my Facebook stuff works great, but the Twitter setup does not redirect the request to twitter.com -- just sends it to \"Account/Login\" locally for some reason.  \r\n\r\nI'm running the latest version of IdSvr3 and the code is below.  My SeriLog entries show \"triggering challenge for external identity provider\" as well as the \"external login requested for: twitter\" -- I think everything looks to be set up ok but for some reason the external login redirect just goes to \"account/login\" locally.  Any thoughts on what I might be doing wrong or what else I should check?\r\n\r\nThanks - \r\nErik\r\n\r\nFrom Owin Startup class:\r\n```csharp\r\n        public void Configuration(IAppBuilder app)\r\n        {\r\n            Log.Logger = new LoggerConfiguration()\r\n                    .MinimumLevel.Debug()\r\n                    .Enrich.WithProperty(\"UserName\", System.Security.Principal.WindowsIdentity.GetCurrent().Name)\r\n                    .Enrich.WithProperty(\"MachineName\", Environment.MachineName)\r\n                    .WriteTo.NwpEntLibQueue()\r\n                    .CreateLogger();\r\n\r\n            var options = Helpers.GetIdentityServerOptions();\r\n            options.AuthenticationOptions = new AuthenticationOptions\r\n            {\r\n                IdentityProviders = ConfigureIdentityProviders\r\n            };\r\n\r\n            app.UseCookieAuthentication(new CookieAuthenticationOptions());\r\n\r\n            app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);\r\n            app.Map(\"/identity\", idsrvApp =>\r\n            {\r\n                idsrvApp.UseIdentityServer(options);\r\n            });\r\n        }\r\n        public static void ConfigureIdentityProviders(IAppBuilder app, string signInAsType)\r\n        {                        \r\n            app.UseFacebookAuthentication(Helpers.GetFacebookAuthenticationOptions(signInAsType));\r\n\r\n            app.UseTwitterAuthentication(Helpers.GetTwitterAuthenticationOptions(signInAsType));\r\n        }\r\n```\r\n\r\nAnd the \"GetTwitterAuthenticationOptions\" method:\r\n```csharp\r\ninternal static TwitterAuthenticationOptions GetTwitterAuthenticationOptions(string signInAsType)\r\n        {\r\n            var twitterOptions = new TwitterAuthenticationOptions()\r\n            {\r\n                AuthenticationType = \"twitter\",\r\n                Caption = \"Twitter\",\r\n                //Provider = new TwitterAuthenticationProvider()\r\n                //{\r\n                //    OnAuthenticated = (context) =>\r\n                //    {\r\n                //        context.Identity.AddClaim(new Claim(\"emailaddress\", \"\"));\r\n                //        context.Identity.AddClaim(new Claim(\"username\", \"\"));\r\n                //        context.Identity.AddClaim(new Claim(\"idp\", \"twitter\"));\r\n                //        return Task.FromResult(0);\r\n                //    }\r\n                //},\r\n\r\n                SignInAsAuthenticationType = signInAsType,\r\n                ConsumerKey = \"<realconsumerkey>\",\r\n                ConsumerSecret = \"<realconsumersecret>\"\r\n            };\r\n\r\n            return twitterOptions;\r\n        }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/169014876","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/2360#issuecomment-169014876","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/2360","id":169014876,"user":{"login":"dahlsailrunner","id":8389867,"avatar_url":"https://avatars.githubusercontent.com/u/8389867?v=3","gravatar_id":"","url":"https://api.github.com/users/dahlsailrunner","html_url":"https://github.com/dahlsailrunner","followers_url":"https://api.github.com/users/dahlsailrunner/followers","following_url":"https://api.github.com/users/dahlsailrunner/following{/other_user}","gists_url":"https://api.github.com/users/dahlsailrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/dahlsailrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahlsailrunner/subscriptions","organizations_url":"https://api.github.com/users/dahlsailrunner/orgs","repos_url":"https://api.github.com/users/dahlsailrunner/repos","events_url":"https://api.github.com/users/dahlsailrunner/events{/privacy}","received_events_url":"https://api.github.com/users/dahlsailrunner/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T14:25:29Z","updated_at":"2016-01-05T14:25:29Z","body":"Thanks for suggestion.  Will try sometime in next couple of days and report back."}}