{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1734","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1734/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1734/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1734/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1734","id":101447844,"number":1734,"title":"Q: \"There is an error determining which application you are signing into. Return to the application and try again.\" ","user":{"login":"tonyeung","id":1285514,"avatar_url":"https://avatars.githubusercontent.com/u/1285514?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyeung","html_url":"https://github.com/tonyeung","followers_url":"https://api.github.com/users/tonyeung/followers","following_url":"https://api.github.com/users/tonyeung/following{/other_user}","gists_url":"https://api.github.com/users/tonyeung/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyeung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyeung/subscriptions","organizations_url":"https://api.github.com/users/tonyeung/orgs","repos_url":"https://api.github.com/users/tonyeung/repos","events_url":"https://api.github.com/users/tonyeung/events{/privacy}","received_events_url":"https://api.github.com/users/tonyeung/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":5,"created_at":"2015-08-17T15:29:22Z","updated_at":"2015-08-17T16:32:36Z","closed_at":null,"body":"I'm getting the \"There is an error determining which application you are signing into. Return to the application and try again.\" \r\n\r\nLooking through the code, it seems the message gets set if the login method on the Authentication Controller gets called in IdentityServer3.Core.Endpoints\r\n\r\n    public async Task<IHttpActionResult> Login(string signin = null)\r\n\r\nIt seems like its trying to get some value from a cookie. \r\nI have the external login cookie enabled, but i guess it doesn't look there?\r\n\r\nMy owin config is\r\n```\r\n            app.SetDefaultSignInAsAuthenticationType(\"External\");\r\n            var factory = new IdentityServerServiceFactory()\r\n                            .UseInMemoryClients(Clients.Get())\r\n                            .UseInMemoryScopes(Scopes.Get())\r\n                            .UseInMemoryUsers(new List<InMemoryUser>());\r\n\r\n            var cors = new InMemoryCorsPolicyService(Clients.Get());\r\n            factory.CorsPolicyService = new Registration<ICorsPolicyService>(cors);\r\n\r\n\r\n\r\n\r\n            var options = new IdentityServerOptions\r\n            {\r\n                Factory = factory,\r\n                AuthenticationOptions = new AuthenticationOptions()\r\n                {\r\n                    IdentityProviders = (appBuilder, signInAsType) =>\r\n                    {\r\n                        Kentor.AuthServices.Configuration.Options.GlobalEnableSha256XmlSignatures();\r\n                        app.UseKentorAuthServicesAuthentication(new KentorAuthServicesAuthenticationOptions(true));\r\n                    }\r\n                },\r\n                LoggingOptions = new LoggingOptions()\r\n                {\r\n                     EnableHttpLogging  = true,\r\n                      EnableKatanaLogging = true,\r\n                       EnableWebApiDiagnostics = true,\r\n                        WebApiDiagnosticsIsVerbose = true\r\n                }\r\n            };\r\n\r\n            app.UseIdentityServer(options);\r\n```\r\nMy app.config\r\n```\r\n\r\n  <kentor.authServices entityId=\"https://localhost:13855/AuthServices\" returnUrl=\"https://localhost:13855/ExternalLoginCallback/\">\r\n    <identityProviders>\r\n      <add entityId=\"http://domain/adfs/services/trust\" \r\n           destinationUrl=\"https://domain/adfs/ls/\" allowUnsolicitedAuthnResponse=\"true\" binding=\"HttpRedirect\">\r\n\r\n        <signingCertificate fileName=\"TokenSigningStaging.cer\" />\r\n      </add>\r\n    </identityProviders>\r\n  </kentor.authServices>\r\n\r\n  <system.identityModel />\r\n```"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/131882046","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1734#issuecomment-131882046","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1734","id":131882046,"user":{"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},"created_at":"2015-08-17T16:32:36Z","updated_at":"2015-08-17T16:32:36Z","body":"Well, I don't really know what your setup is or what you're trying to do -- I was just answering the question about the login page. IdSvr is an OIDC server and so when a OIDC client makes an authorization request then if the user needs to authenticate they are sent to our login page anid once that's done the authorization request can continue."}}