Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to Different SSO behavior for ASWebAuthenticationSession in iOS 14
The upgrade to iOS 14.5 fixed Great news! For example, this issue persists with a user with this user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1. From the logs I can see that, with ASWebAuthenticationSession, cookies that are correctly set by our server in set-cookie header but are not sent by Safari in the following calls. I precise that we only use first-party cookies. I'm confused what the User-Agent string has to do with the issue persisting? Are you able to provide any more information about the non-working case? Have these users not updated to iOS 14.5 yet? Matt Eaton DTS Engineering, CoreOS meaton3@apple.com
Topic: Privacy & Security SubTopic: General Tags:
Jun ’21
Reply to Different SSO behavior for ASWebAuthenticationSession in iOS 14
Hello, Do you have some feedback regarding this fix? The upgrade to iOS 14.5 fixed the issue for some of our users but not for all of them. For example, this issue persists with a user with this user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1. From the logs I can see that, with ASWebAuthenticationSession, cookies that are correctly set by our server in set-cookie header but are not sent by Safari in the following calls. I precise that we only use first-party cookies. This concerns a very small number of users but they are completely blocked with no other solution than to reset their iPhone or to buy a new one. Regards,
Topic: Privacy & Security SubTopic: General Tags:
May ’21
CFNetwork not handling cookie attribute "SameSite=none" correctly in macOS <10.15
Google are starting to enforce stricter cookie handling in Chrome 80 next week. In researching this change it appears iOS 12 and below and macOS 10.14 and below have a core networking issue that prevents proper handling of the Samesite=none cookie attribute.It's reported that older versions of CFNetwork/Safari/Webkit erroneously handle Samesite=none as the equivalent of Samesite=strict. This might have big consequences as web service providers start using the Samesite attribute more widely.There are details in the Webkit bug 198181 (now resolved) thread here: https://bugs.webkit.org/show_bug.cgi?id=198181Part way down is a reference to a CFNetwork/NSHTTPCookie fix for this issue under rdar://problem/42290578.However, other comments indicate that this fix is unlikely to be back ported to previous macOS &amp;amp; iOS versions.Does anyone have a definitive answer as to whether iOS 11/12 and macOS 10.13/10.14 will recieve a fix for the cookie Samesite handling issue?
11
0
8.6k
May ’21
Accessing cookie not possible on devices running > iOS 09
Dear experts,We have an hybrid application built with cordova for both iOS and Android platforms. The app was successfully running until the devices were upgraded(from iOS 9) to latest.We perform login to backend server using normal ajax call and in the response the Cookie is read and send in subsequent requests.We are using Set-Cookie to achieve SSO, though we can see Set-Cookie in repsonse headers via debug, When I try jqHR.getAllResponseHeaders() method all the values except 'Set-Cookie' can be seen in console.Code snippet to perform login and utilize cookie received in response is as below.jQuery.ajax({ headers : { X-Requested-With : XMLHttpRequest, Content-Type : application/json, DataServiceVersion : 2.0, X-CSRF-Token : Fetch, Authorization : Basic + Base64.encode(username+:+password), Access-Control-Allow-Credentials: include }, type : GET, url : util.Models.serviceURL, timeout : 60000, dataType : json, success : function(data,textStatus, jqXHR) { //Set Cookie
Topic: Safari & Web SubTopic: General Tags:
2
0
1.8k
Apr ’21
completionHandler is not triggered when using ASWebAuthenticationSession on iOS 14 iPad
When using ASWebAuthenticationSession to show a login session on iPad on iOS 14, the user can tap the background to dismiss the login session, however the completionHandler is not triggered and there is no way to tell when the user canceled the Auth session. I am using the following code from Apple to reproduce the issue on iPad: https://developer.apple.com/documentation/authenticationservices/authenticating_a_user_through_a_web_service?language=objc
1
0
1.1k
Apr ’21
Reply to Error installing macOS Big Sur: "The package %@ is missing or invalid"
I believe this is a security issue. I utilize a DNS honeypot and VPN to limit advertising cookies and unseen hooks by Amazon, Google, etc into my home in order to privatize my personal data and browsing history and this causes issues with updating my Apple, and other services. When I disable it, everything updates just fine. I then enable my security and feel secure once again
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’21
Reply to iOS 11.3: WKWebView cookie synchronizing stopped working
ADDENDUM: One thing that would clarify this problem, however not solve it, is the fact that a plain • myWebview.load(URLRequest) is using Mozilla/5.0 as the agent, which is confirmed by the server log. However • URLSession.shared.dataTask(with: URLRequest) { data, response, error in ... } uses a CFNetwork executionExtension as the agent, also confirmed by the server log. So if the executionExtension spins up its own URLSession that writes the cookies to the cookieStore, it could be that after the dataTask’s completion handler the session gets deallocated and hence the temporary session cookies get removed from the cookieStore right away. The question then is, how do you get a copy of those short-lived cookies before the extension closes, because even • myWebview.configuration.websiteDataStore.httpCookieStore.getAllCookies { cookies in ...} is asynchronous and too slow to grab hold of them. And even when loading the response’s mime ‘text/HTML’ payload with • myWebview.loadHT
Topic: Safari & Web SubTopic: General Tags:
Apr ’21
Reply to iOS 11.3: WKWebView cookie synchronizing stopped working
Hi Quinn, I’ve been tracing the cookie issues for over a month now and I am able to reproduce and remedy all test cases 100%. I do have a dedicated test environment with utility buttons in the UI that let me e.g. log the cookieStore, empty the cookieStore etc. All WKWebview delegate methods and cookieStore observers are in place and log to the console when they fire. So the 2 take away test scenarios for you are these: ——————————————————— SCENARIO 1: ——————————————————— • starting the test environment • totally resetting the cookieStore by deleting all cookies • logging the cookieStore shows that it is empty • quitting the test environment • re-loading the test environment • environment is loading a test webpage from the internet with: — myWebview.(URLRequest) • the page loads correctly • the response-header’s ‘Set-Cookie’ field requests 3 cookies to be set • the WKWebview sets 3 cookies (as requested in the response-header’s ‘Set-Cookie’ field) • the didC
Topic: Safari & Web SubTopic: General Tags:
Apr ’21
Reply to SSO Extension for the enterprise
Hello Folks Have you got this to work ? I'm trying to setup a new SSO Extension but it does not work at all. Here is what I did : 1) I have followed the steps on the Tech Talk to configure the MDM payload in Airwatch. 2) I have installed Debug profiles that apple suggested for troubleshooting 3) I have created a dummy Identity provider. a. I understand that we need to setup a URL that will be detected by iOS and redirected to the extension. I have created a simple webpage in a valid/secured webserver and used that URL as my IdP b. In the dummy website, I have created the .wellknown/* file c. I have triggered the sysdiagnose command on my iPad. The authsrv entry seems fine. I guess it is because the Apple CDN can successfuly access the well known file... I'm not sure because I have not found a solid documentation on how this is supposed to work anywhere. d. The MDM settings are sent to the device properly. e. I have tried opening the device console but I could not see any useful information there, even after i
Apr ’21
_CFHTTPCookieStorageFlushCookieStores crash
In my enterprise app I need to clean out the cookies of the WKWebviews to keep a clean session. Since we migrated to WKWebviews from UIWebview we have seen this crash quite often. Here is the stack trace Crashed: com.apple.CFNetwork.LoaderQ 0 libobjc.A.dylib 0x1a6e72ed0 objc_retain + 16 1 CFNetwork 0x19268b3a8 _CFHTTPCookieStorageFlushCookieStores + 11724 2 CFNetwork 0x192691f5c _CFHTTPCookieStorageFlushCookieStores + 39296 3 CFNetwork 0x19268b220 _CFHTTPCookieStorageFlushCookieStores + 11332 4 CFNetwork 0x19268a44c _CFHTTPCookieStorageFlushCookieStores + 7792 5 CFNetwork 0x1926895bc _CFHTTPCookieStorageFlushCookieStores + 4064 6 CFNetwork 0x1926d97f4 _CFHTTPServerResponseEnqueue + 16388 7 CFNetwork 0x1926d8ca0 _CFHTTPServerResponseEnqueue + 13488 8 CFNetwork 0x1924e65a0 (Missing) 9 CFNetwork 0x19262a8f4 _CFStreamErrorFromCFError + 413612 10 CFNetwork 0x19262a588 _CFStreamErrorFromCFError + 412736 11 CFNetwork 0x1926824a8 _CFNetworkSetATSContext + 97796 12 CFNetwork 0x19267f9ac _CFNetworkSetATSContex
1
0
713
Apr ’21
Reply to Localstorage in ios13 resetting by itself
Your problem may be linked to the 7 days cap on localStorage introduced in iOS/iPad 13.4 Here is a link to a blog post from webkit : Full Third-Party Cookie Blocking and More - https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/ Did you try using service workers ? I wonder if service workers could prevent data loss in PWA Hope I helped.
Topic: Safari & Web SubTopic: General Tags:
Mar ’21
WKWebView issue on iOS 14.4.1 - I suspect that accepting cookies is disabled
In iOS 14.4 there was a problem with login via login.microsoftonline.com in our app using the WKWebView component - it showed empty page on iPhone SE. At the same time login to this site worked perfectly in Safari on the same iphone. We were able to fix this issue by adding this line to our code before the code which loads the site: HTTPCookieStorage.shared.cookieAcceptPolicy = .always Apple docs state that default value is .always but setting this value manually actually fixed the issue on iOS 14.4. On iOS 14.4.1 this solution stopped working and login.microsoftonline.com shows empty white page again for one of our users. Can someone give us an idea how it could be fixed? I suspect that it could be similar cookie issue.
Topic: Safari & Web SubTopic: General Tags:
1
0
1.4k
Mar ’21