SFAuthenticationSession-example icon indicating copy to clipboard operation
SFAuthenticationSession-example copied to clipboard

SFAuthenticationSession Cookies not successed

Open JackSteven opened this issue 8 years ago • 6 comments

XCode: Version 9.0 (9A235) Simulator: iPhone7 + iOS11 .0

hello,run your demo later, last step 6 is user cookie not set.

I don't know why?

JackSteven avatar Oct 14 '17 15:10 JackSteven

I see the same issue. Suspecting an issue with storing cookies for local hosts, I tried using localhost, instead of 0.0.0.0, and using ngrok. Neither worked. However, I the Instagram example at https://github.com/dvdhpkns/SFAuthenticationSession-Instagram-Oauth works without issue.

clintonb avatar Oct 14 '17 20:10 clintonb

Yes, I see the same issue, I noted it in the README. I sent this repo to apple in a radar and they marked it as closed despite it not being resolved @JackSteven @clintonb.

dvdhpkns avatar Oct 18 '17 02:10 dvdhpkns

Lately, I'm running to my iPhone7 (not Simulator), successed. Thanks. @clintonb @dvdhpkns .

JackSteven avatar Oct 26 '17 09:10 JackSteven

Really @JackSteven? I tried running on my iPhone 7 today and was not successful. I went to Safari and set the cookie using my computer's IP address and then I pointed the app at the same IP and the cookie was not set. What iOS version are you on?

dvdhpkns avatar Oct 26 '17 23:10 dvdhpkns

@dvdhpkns Sorry, I forgot to say, I tried running on my colleague‘s web development environment, and then successful.

JackSteven avatar Nov 01 '17 00:11 JackSteven

Works great for me on a physical device. I had to tweak the app code's ViewController.swift file - Modified authURL to point to my server's IP (0.0.0.0 won't always work if not tethered)... @dvdhpkns In the server setup instructions you skipped the "virtualenv env" line before source.

scpender avatar Mar 23 '18 22:03 scpender