Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

shared HTTPCookieStorage flushing , session cookies
After a few experiments with HTTPCookieStorage.sharedCookieStorage , it seems that the behavior for the storage in that scenario involves some kind of OS flushing / synchronisation: There seem to be cases when the storage is updated, yet the updates aren't visible. Examples are: update by a process not visible by other processes from the same app group, hard crash / killing, etc. This all led me believe that there is some caching involved (of course, i can only guess, as the documentation provides 0 clues on internals). In some cases, such as authentication session cookies, this could have disastreous consequences (such as login out a user for no reason). => Is there some kind of way to force the flushing on the cookies, for the important ones ? Are there recommended alternatives for storing authentication cookies shared accross apps and extensions (keychain ?)
1
0
777
Jul ’22
Reply to shared HTTPCookieStorage flushing , session cookies
Are there recommended alternatives for storing authentication cookies shared accross apps and extensions (keychain ?) Yes, you could try using a token based authentication scheme that is saved in an account Keychain instead. To see how to delegate account credentials in the Keychain to handle this, checkout the article on Adding a Password to the Keychain.. This is also PassKeys for your iOS 16 requirements.
Topic: App & System Services SubTopic: General Tags:
Jul ’22
ASWebAuthenticationSession won't open the Safari login window on Monterey
My macOS app uses ASWebAuthenticationSession for users to login to a third party service. It's worked fine until Monterey. When I call start on ASWebAuthenticationSession it shows me the permission window as expected: However when I click Continue nothing else happens. It does not show the Safari window and load the login page. I've noticed these errors appear in the Console every time, so it seems it's having trouble opening Safari (even though I have Safari already open). Any suggestions on how to fix this? Surely ASWebAuthenticationSession isn't broken for everyone? error 10:40:50.598301+0000 kernel 43 duplicate reports for Sandbox: com.apple.WebKit(13346) deny(1) mach-lookup com.apple.diagnosticd error 10:40:50.598309+0000 kernel Sandbox: SafariLaunchAgen(5469) deny(1) system-fsctl _IO('h', 47) error 10:40:52.349729+0000 kernel Sandbox: com.apple.WebKit(6675) deny(1) mach-lookup com.apple.diagnosticd error 10:40:53.011948+0000 CoreServicesUIAgent LAUNCH: Launch failure with -106
16
0
8.5k
Jul ’22
“Other” and “System” storage is taking up literally over half of my storage
So ive been trying to make storage on my phone since its been pretty full for a while. Im currently putting all my photos onto icloud. And i deleted a bunch of apps. But the “System” category is taking 7.44 GB of my storage and “Other” is taking up 9.47 GB and i think thats outrageous. I have an iphone 7 and i think ive had it for about 2 years. Rn the largest app taking up space is photos with about 5 GB and the rest have under 400 MB. ive gotten it down to about 25 GB but system and other is taking up most of that. Ive already cleared my safari history and cookies and cleared ALL my messages bc i dont have minutes and dont use messages i use insta, and these numbers are after i did that. What can i do? im gonna try backing it up and restarting it or whatever but its saying i dont have enough space on icloud for a backup even though its 4/5ths empty with 4 GB of empty space.
2
0
579
Jun ’22
No podspec found for `react-native-image-picker` in `../node_modules/react-native-image-picker`
I got clone to a repo and I installed node modules correctly without any errors, but when I run pod install in the command line, I get that error, Ignoring unf_ext-0.0.7.6 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.6 Auto-linking React Native modules for target maltevinder: RNCAsyncStorage, RNCMaskedView, RNDateTimePicker, RNFastImage, RNGestureHandler, RNReanimated, RNScreens, RNVectorIcons, lottie-ios, lottie-react-native, react-native-cookies, react-native-document-picker, react-native-restart, and react-native-safe-area-context Analyzing dependencies Fetching podspec for DoubleConversion from ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec Fetching podspec for Folly from ../node_modules/react-native/third-party-podspecs/Folly.podspec Fetching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec [!] No podspec found for react-native-image-picker in ../node_modules/react-native-image-picker That's my Pod
1
0
6.0k
Jun ’22
How to setup iOS Safari to be safe but work
I have used Safari as my primary browser for years now and it has evolved. Some very good updates and some bad. I have noticed since iOS 14 I believe when Apple started slowly implementing more security features that pages would show up wonky or unresponsive at times, but a clear browsing history and cookies would fix this issue. Then in iOS 15 and now 16b1 it’s become almost unusable on certain pages. Again these issues have been ongoing since the updated security features started rolling out and in non beta releases For example. Some pages won’t load completely or when you try to use a drop down menu the pictures would overlap the drop down. Resets or clearing cookies/cache, history would not fix this issue. Even turning off some of the privacy features wouldn’t resolve this. Menus have become unresponsive, ie. registering a new user on a forum. The menus would are static with no way to change or update your dob or address. I hope this makes sense so far. So here is what I have turned on a
1
0
1.1k
Jun ’22
IOS 15: WebAuthn catches error but still prompts user
Hi. The registration process with WebAuthn works fine and expected. As we use the same code on both android and ios, we dont use discoverable credentials, but instead saves the credential-id in a cookie. If an user deletes his cookie, we can not see if the user has registered previously without prompting the user for registration again. This is okay, and if we get an InvalidStateError (because the user is already registered) we let the user think he has registered again, and just creates a new cookie. The problem is: When the navigator.credentials.create is called, the InvalidStateError is catched immideately, before the user have time to do anything about the faceID prompt which shows. When the InvalidStateError is caught, the Registration Completed page shows. This means the completed page is shown behind the face-id prompt, which is very confusing for the user. How can the registration be completed if the face-id prompt is not finished? On Windows, the error is not thrown before
1
0
850
Jun ’22
iOS 11.3: WKWebView cookie synchronizing stopped working
Hi,Anyone else having issues with WKWebView cookies after iOS 11.3? (Or any recomondations of what we might be doing wrong?)Working on an app with web content, we switched fro UIWebView to WKWebView after iOS 11.We use URLSession for authentication, then webviews to show content.In order to syncrhonzie cookies to WKWebViews, we have used the following procedure:1. Log in with URLSession2. Create a WKWebView with the cookies from the URLSession:let config = WKWebViewConfiguration() config.processPool = WKProcessPool() let cookies = HTTPCookieStorage.shared.cookies ?? [HTTPCookie]() cookies.forEach({ config.websiteDataStore.httpCookieStore.setCookie($0, completionHandler: nil) }) let wkWebView = WKWebView(frame: bounds, configuration: config) ...3. Load the URL.Worked like a charm, until iOS 11.3.Something fishy is happening, I have checked that the HTTPCookieStorage contains the correct cookies, and verified that the completionHandler of setCookie gets called before
30
0
56k
Apr ’21
Reply to Accessing Developer Forums on Google Chrome?
Yah, this happens every time I access developer.apple.com but only /forums -- I do appstoreconnect,the top level /account tools, etc all the time on chrome and never see this issue. It really seems scoped to /forums for me. Doesn't matter if I restart Chrome. I haven't cleared cookies - I'm sure that will make it work for a short period of time, and then the issue returns. I have multiple profiles on Chrome but I really only ever use the one I am using now and see this problem.
Jun ’22
Reply to Accessing Developer Forums on Google Chrome?
Two things: It is still happening on my MacBook Pro with Chrome (updated chrome, Monterey 12.4) - I note that the cookie header (in the request to developer.applet.com ) is 6308 bytes (!!) in length. I'm sure this is the immediate cause of the complaint being generated. When I use incognito mode, the error is not present. On Safari, the cookie header is 1324 bytes in length I am a frequent user of apple products/services using multiple accounts. Maybe this is related? I'm happy to help debug this issue @eskimo - I find it terribly annoying (to put it mildly).
May ’22
Reply to ASWebAuthenticationSession won't open the Safari login window on Monterey
Same here on Monterey 12.2 - I had Safari running for a long time (with lots of open windows and tons of tabs). The UI for ASWebAuthenticationSession never showed up, even when trying multiple times. After quitting and relaunching Safari, all the queued requests for ASWebAuthenticationSession were handled in a serial fashion. This is clearly broken. Please fix in macOS 13.
Topic: App & System Services SubTopic: Core OS Tags:
May ’22