{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Identity/issues/1970","repository_url":"https://api.github.com/repos/aspnet/Identity","labels_url":"https://api.github.com/repos/aspnet/Identity/issues/1970/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Identity/issues/1970/comments","events_url":"https://api.github.com/repos/aspnet/Identity/issues/1970/events","html_url":"https://github.com/aspnet/Identity/issues/1970","id":361931683,"node_id":"MDU6SXNzdWUzNjE5MzE2ODM=","number":1970,"title":"Second Facebook or Google sign in returns to /account/login after iOS 12 upgrade","user":{"login":"eriksendc","id":8974354,"node_id":"MDQ6VXNlcjg5NzQzNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8974354?v=4","gravatar_id":"","url":"https://api.github.com/users/eriksendc","html_url":"https://github.com/eriksendc","followers_url":"https://api.github.com/users/eriksendc/followers","following_url":"https://api.github.com/users/eriksendc/following{/other_user}","gists_url":"https://api.github.com/users/eriksendc/gists{/gist_id}","starred_url":"https://api.github.com/users/eriksendc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriksendc/subscriptions","organizations_url":"https://api.github.com/users/eriksendc/orgs","repos_url":"https://api.github.com/users/eriksendc/repos","events_url":"https://api.github.com/users/eriksendc/events{/privacy}","received_events_url":"https://api.github.com/users/eriksendc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-09-19T21:18:38Z","updated_at":"2018-09-26T03:59:44Z","closed_at":null,"author_association":"NONE","body":"_NOTE: See my second comment on this issue. This isn't just an issue with my app (getyourpet.com). It can be reproduced with a \"File New Project\" web app. Someone needs to tell Apple what they broke fast!_\r\n\r\nHi All,\r\n\r\nI upgraded my iPhone 6s to iOS 12.0 yesterday (I was on 11.x), and I found that after the upgrade I couldn't sign in to getyourpet.com (my production site) using the Facebook button on the sign in page (/account/login) when using the Safari app. Tapping the Facebook button displayed the spinner on that button for a brief moment, but then you're just back at /account/login (though some amount of redirecting seemed to be happening behind the scenes). That led me to do a lot of experimenting. Here are some other findings:\r\n\r\n1. I had a colleague who was still on iOS 11x try signing in with Facebook. She could sign in over and over using Facebook without any issue. I then had her upgrade to iOS 12 and now both of our experiences are identical. Tapping the Facebook button displays the spinner, there's some redirecting going on, but when the spinner stops spinning you're at /account/login.\r\n\r\n2. Signing in with Facebook or Google on Chrome, Firefox, Edge and Opera are fine on my laptop.\r\n\r\n3. I tried signing in with the Google Chrome and Firefox apps. In both cases the behavior was the same as with Safari. I'm just back at /account/login.\r\n\r\n4. If I clear browser history and cookies for any of the browser apps, then signing with Facebook or Google works once. You're redirected to either the Facebook or Google authentication pages, then you're redirected back to getyourpet.com and you're signed in. But if you sign out and try signing in again, you're back at 3: tapping Facebook or Google the second time after clearing history and cookies you're just left at /account/signin.\r\n\r\n5. If I sign in using email / password then go and manage my login providers (on getyourpet.com this is in the user menu as Sign In With...) and then select to enable signing in with Facebook or Google on an account, if I've just cleared browser cache / cookies, then the user is brought to Facebook or Google to authenticate, and returned to getyourpet.com's Sign In With... page successfully. If you try enabling signing in with Facebook or Google and there's already a cookie, then you're signed out!\r\n\r\n6. I've reproduce this in all of our environments (local development on my laptop and in our QA environment).\r\n\r\nI'm trying to dig up another iPhone to reproduce this on. I won't have this until later tonight, but I did feel this is such a potentially giant issue that I thought I'd raise it quickly. Unfortunately I'm not a mobile developer, and don't have any clue as to how to get started with using some kind of tool like Fiddler to watch the traffic to/from the browser apps on my phone.\r\n\r\nAnyways, it seems like once there is an authentication cookie, somehow that's not correctly being sent to getyourpet.com?\r\n\r\nI'm sure this is the kind of issue where it's like \"oh boy, this probably isn't even real, and there's not enough to go on\". If there are things I can provide that would make further investigation possible let me know.\r\n\r\nWe're running a fairly basic ASP.NET web app that's been migrated all the way from pre-1.0 through to the latest version of 2.1 (2.1.4). I've included the relevant parts of our project file below. We run on servers running Windows 2012 R2 with the latest patches, and we run using IIS 8.5 (not native kestrel). Nothing has changed in our environment for over a week. The variable seems to be iOS 12.\r\n\r\nI know y'all don't own iOS 12, but if there was some way of knowing what's going on then there would be something concrete that could be sent to Apple. I'm afraid it's going to be a lot of trouble for a lot of sites like getyourpet.com as folks upgrade to iOS 12.\r\n\r\n-Brian Eriksen\r\n\r\n    PackageReference Include=\"angularjs\" Version=\"1.4.7\" \r\n    PackageReference Include=\"AngularJS.Messages\" Version=\"1.4.8\" \r\n    PackageReference Include=\"bootstrap\" Version=\"3.3.5\" \r\n    PackageReference Include=\"System.IO.Pipelines\" Version=\"4.5.1\" \r\n    PackageReference Include=\"EntityFramework\" Version=\"6.2.0\" \r\n    PackageReference Include=\"Microsoft.EntityFrameworkCore.Design\" Version=\"2.1.3\" PrivateAssets=\"All\" \r\n    PackageReference Include=\"Microsoft.EntityFrameworkCore.SqlServer\" Version=\"2.1.3\" \r\n    PackageReference Include=\"Microsoft.EntityFrameworkCore.Tools\" Version=\"2.1.3\" PrivateAssets=\"All\" \r\n    PackageReference Include=\"KendoUICore\" Version=\"2015.3.1111\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Antiforgery\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Authentication.Cookies\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Authentication.Facebook\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Authentication.Google\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Authentication.MicrosoftAccount\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Authentication.Twitter\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Diagnostics\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Identity.EntityFrameworkCore\" Version=\"2.1.3\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Server.IISIntegration\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Mvc\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Mvc.TagHelpers\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Server.Kestrel\" Version=\"2.1.3\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.StaticFiles\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Routing\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Caching.Abstractions\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.Extensions.Caching.Memory\" Version=\"2.1.2\" \r\n    PackageReference Include=\"Microsoft.Extensions.Configuration.FileExtensions\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Configuration.EnvironmentVariables\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Configuration.Json\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Configuration.UserSecrets\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Logging\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Logging.Configuration\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Logging.Console\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Logging.Debug\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.PlatformAbstractions\" Version=\"1.1.0\" \r\n    PackageReference Include=\"Microsoft.VisualStudio.Web.BrowserLink\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.VisualStudio.Web.CodeGeneration.Design\" Version=\"2.1.4\" PrivateAssets=\"All\" \r\n    PackageReference Include=\"Sendgrid\" Version=\"9.9.0\" \r\n    PackageReference Include=\"Twilio\" Version=\"5.16.4\" \r\n    PackageReference Include=\"NLog.Web.AspNetCore\" Version=\"4.6.0\" \r\n    PackageReference Include=\"NLog.Extensions.Logging\" Version=\"1.2.1\" \r\n    PackageReference Include=\"NLog\" Version=\"4.5.9\" \r\n    PackageReference Include=\"Hangfire\" Version=\"1.6.20\" \r\n    PackageReference Include=\"Hangfire.AspNetCore\" Version=\"1.6.20\" \r\n    PackageReference Include=\"Microsoft.SqlServer.Types\" Version=\"14.0.314.76\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Http.Features\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.Extensions.Options.ConfigurationExtensions\" Version=\"2.1.1\" \r\n    PackageReference Include=\"MaxMind.GeoIP2\" Version=\"3.0.0\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Owin\" Version=\"2.1.1\" \r\n    PackageReference Include=\"Microsoft.AspNet.SignalR.Owin\" Version=\"1.2.2\" \r\n    PackageReference Include=\"Microsoft.AspNet.SignalR\" Version=\"2.3.0\" \r\n    PackageReference Include=\"Microsoft.AspNet.SignalR.Redis\" Version=\"2.3.0\" \r\n    PackageReference Include=\"LinqKit.Microsoft.EntityFrameworkCore\" Version=\"1.1.15\" \r\n    PackageReference Include=\"Microsoft.AspNetCore.Mvc.Razor.ViewCompilation\" Version=\"2.1.1\" PrivateAssets=\"All\" \r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Identity/issues/comments/424577013","html_url":"https://github.com/aspnet/Identity/issues/1970#issuecomment-424577013","issue_url":"https://api.github.com/repos/aspnet/Identity/issues/1970","id":424577013,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDU3NzAxMw==","user":{"login":"eriksendc","id":8974354,"node_id":"MDQ6VXNlcjg5NzQzNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8974354?v=4","gravatar_id":"","url":"https://api.github.com/users/eriksendc","html_url":"https://github.com/eriksendc","followers_url":"https://api.github.com/users/eriksendc/followers","following_url":"https://api.github.com/users/eriksendc/following{/other_user}","gists_url":"https://api.github.com/users/eriksendc/gists{/gist_id}","starred_url":"https://api.github.com/users/eriksendc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriksendc/subscriptions","organizations_url":"https://api.github.com/users/eriksendc/orgs","repos_url":"https://api.github.com/users/eriksendc/repos","events_url":"https://api.github.com/users/eriksendc/events{/privacy}","received_events_url":"https://api.github.com/users/eriksendc/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T03:59:44Z","updated_at":"2018-09-26T03:59:44Z","author_association":"NONE","body":"Hi @Tratcher , yeah I think I used Fiddler back when it first came out... and over the years... but not an expert. I believe I have a trace but I've got these options when I export. Is there one of them that you'd prefer?\r\n\r\n![image](https://user-images.githubusercontent.com/8974354/46056535-111c1480-c11f-11e8-9101-b57c7e77c4d7.png)\r\n"}}
{"actor":{"display_login":"eriksendc"}}