Hello, everyone! I'm using CloudKit JS with a React SPA to allow users from a mobile app to access their data in a web browser. Currently, the project is still under development so there are no public users beside my team. The way I've integrated CK JS in my app is via their CDN, importing the required url in my index.html file. However, I'm having issues with the Authentication using Apple Sign In. While the Sign In and Sign Out buttons work correctly for me and my teammates, the session is not persisted for everyone. Actually, I'm the only one from me team that does not have to log in every day. I have the following configuration function: export const configureCloudKit = () => { window.CloudKit.configure({ locale: 'en-us', containers: [ { containerIdentifier: CONTAINER_ID, apiTokenAuth: { apiToken: API_TOKEN, persist: true, signInButton: { id: 'apple-sign-in-button', theme: 'black', }, signOutButton: { id: 'apple-sign-out-button', theme: 'black', }, }, environment: 'development', }, ], }); }; As you
Search results for
ASWebAuthenticationSession cookie
1,295 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
The cookie thing is private, which I am not sure folks can comment a lot. As a specification though, a web authentication token expires 30 minutes after it is created. If the user selects “Keep me signed in” during the sign-in window, the duration of the token is 2 weeks. I am wondering it is that you selected the “Keep me signed in” option and your colleagues didn't. Meanwhile, I am wondering if the CloudKit on the web sample https://cdn.apple-cloudkit.com/cloudkit-catalog/ presents the same behavior. The configuration is pretty much the same as yours. Best, —— Ziqiao Chen Worldwide Developer Relations.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
This is just a good ol' bug. Didn't exist in previous versions of Xcode - and the suggestion to reset all of my preferences is silly - the equivalent of deleting all browser cookies - when the issue is just a good ol' bug. Fix the bug Apple.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
@Benjamin_D where you able to get answers from Apple or anyone on this? Looking more into Apple's own WebKit definition of website and Cross-site terminology here (https://webkit.org/tracking-prevention/#terminology), there seems to be contradict with Safari's behavior here. Website or site. A website is a registrable domain including all of its subdomains. Others define site to also include the scheme, making http://news.example and https://news.example be two different sites. For the purposes of this document, we consider http and https to be be same site, since cookies can (still) span schemes. Cross-site. The user can be navigated across different websites or a website can load subresources form a different website. These are referred to as cross-site navigations and cross-site loads. When it comes to tracking, cross-site means tracking across different websites. Webkit's definition of Cross-site tracking says When it comes to tracking, cross-site means tracking across different websites. and def
Topic:
Safari & Web
SubTopic:
General
Tags:
After iOS 17.4, Passkey Autofill stopped working inside ASWebAuthenticationSession. iOS 17.5 re-enabled users to pick passkeys if they tap 🔑 icon on right bottom of keyboard and opened Safari password manager. However, it still doesn't recommend passkeys on the first view. Even on the latest iOS 18.0 developer beta, the behaviour is not fixed yet.
Topic:
Safari & Web
SubTopic:
General
Tags:
WebKit
Safari and Web
Safari
Passkeys in iCloud Keychain
Same issue here. We use ASWebAuthenticationSession to login. From what I see in the error the App displays on screen. It looks like a web credentials issue when they test it. On my side, I checked again and again, every thing is fine. I can log in successfully. With previous App Store App, with the same binary in TestFlight. The entitlements are correct in the App, the server are up and running, with correct app-apple-app-site-association files Review device details: Device type: iPad Air (5th generation) OS version: iOS 17.6.1
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
Tags:
We use ASWebAuthenticationSession in our app to perform SAML auth on iOS devices. It works fine with Safari. However, if we config other browsers, such as Chrome, as a default browser on iOS device, ASWebAuthenticationSession still load Safari in embedded window and auth cookies is only stored in Safari. Can ASWebAuthenticationSession work with default browser on iOS similar as it works on MacOS? Thanks, Ying
No, ASWebAuthenticationSession still always uses SafariViewController on iOS. It only uses the default web browser on macOS.
Topic:
Privacy & Security
SubTopic:
General
Tags:
Confirmed on iOS 18.0 (22A55346a) Thi code executed in the background scope (cookie permission is enabled in the manifest): > await chrome.cookies.getAll({url: 'https://www.apple.com'}) < [] Meantime, I've executed a command in the content scope on https://www.apple.com: > document.cookie.split(/;s?/) < 0 as_dc=ucp6 1 mbox=session#b6e888e3d25a447494058... 2 s_vi=[CS]v1|33670C16F9B818C4-600015E... 3 at_check=true 4 geo=US 5 mk_epub=%7B%22btuid%22%3A%22mn038... 6 s_cc=true 7 s_fid=68F59610D97CF34A-21EA35105ABE...
Topic:
Safari & Web
SubTopic:
General
Tags:
I'm still facing this. Only works when I login via incognito mode. Deleted all local storage and cookies in my normal chrome profile too and that still didnt work. Been happening for about 2-3 months now.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Hello, I am trying to add a new build of my project which is working on my internal testing group, to my external testing group. I tried to add the new build, and the app was approved for Beta. The new build did not appear in my external testing group. I tried to add it again, but I am now getting this response from the App Store Connect system: errors : [ { id : 33d32e57-100f-4a9f-a2cb-9b0b41d29502, status : 404, code : NOT_FOUND, title : The specified resource does not exist, detail : There is no resource of type 'builds' with id 'a7a3e66a-f120-4ff8-9544-6754f9515458' } ] } Is the App Store Connect system down, or is something wrong with my account? I've tried clearing the browser cache/cookies/etc, and restarting my computer, but the problem is persisting.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Hello, Is it possible to use a delegate or other approach to detect lifecycle events like form submissions / navigation events from the SFSafariViewController from the application that creates the Safari instance? The use case is a centralised session keep-alive requirement to extend the ttl on tokens for multiple third-party clients that use Single-Sign-On via browser cookies for authentication.
Topic:
Safari & Web
SubTopic:
General
After further debugging this seems related to iOS 18 and Safari not able to read the cookies. We still have no resolution.
Topic:
Safari & Web
SubTopic:
General
Tags:
Hi all, with yesterday's macOS 14.4 update, fileproviderctl removed the listproviders option. I couldn't find a replacement. Other options like dump domain result in error: Import Cookie: Der Vorgang konnte nicht abgeschlossen werden. (GSLibraryErrorDomain-Fehler 2 - Invalid volume URL) Is there anything I can do about this except for wait for Apple to fix this? Or was removing listproviders even done intentionally? Thanks! Sebastian
I also want to add there is an error in the Xcode console on startup of app: Could not create a sandbox extension for '/var/containers/Bundle/Application/..... Both build settings Use Script Sandboxing and Enable App Sandbox are set to NO. Could be that whatever is causing this error is preventing writing the cookies?
Topic:
Safari & Web
SubTopic:
General
Tags: