sparkartgroup-archive / sparkart.js

Easily interact with Sparkart's APIs via Javascript.
1 stars 0 forks source link

Customers can't login using iOS 6.1 #37

Closed pushred closed 11 years ago

pushred commented 11 years ago

Something has changed between iOS 6.0.x and 6.1.x that is causing issues with login. I've confirmed that login works on my own 6.0.1 device and confirmed that an issue exists in 6.1 using the iOS Simulator to try logging in on both UFC Fight Club and Curry Testbed. I'm able to view the console in both environments using the Safari Developer Tools. Using this configuration here's what an initialized fanclub object looks like:

authentications: Array[1]
customer: null
key: "d828a4cb-f8a7-4bf5-a5bb-5a9eed9c27cb"
loaded: true
name: "UFC Fight Club"
parameters: Object
preprocessors: Object
templates: Object

It looks like there were some security updates in 6.1 regarding cross-site communication, perhaps one of these changes is the issue.

Note that UFC is planning on pushing mobile signups at this Saturday's fight and would very much like to see this issue resolved in time. As they paid specifically for this ability in the recent redesign the card has been prioritized accordingly.

Fauntleroy commented 11 years ago

iOS users need to manually allow third party cookies in order for our login approach to work. We'll likely have to use some sort of trickery to get login to work if we keep it like it is. If we move login/registration into the fanclub app proper, we shouldn't have any problems, however.

Fauntleroy commented 11 years ago

When I see myself implementing this hack I feel less confident about our product's stability: http://stackoverflow.com/questions/9930671/safari-3rd-party-cookie-iframe-trick-no-longer-working

pushred commented 11 years ago

We'll be addressing this with https://trello.com/c/0vFMDqJp.

Will close this issue once that is released.