Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to ASWebAuthenticationSession issue on iOS 18 simulator
Not really, there are tons of 3rd parties out there that require to exclude arm64 simulator support. I have the exact same issue for a few days now and the problem occurs with ASWebAuthenticationSession and also with SFAuthenticationSession. It wasn't an issue in XCode 15.4, but it's an issue in XCode 16. I dug in the code of one such framework and as soon as you call start on those sessions, they get stuck like in the image above. We cannot update all the 3rd parties to support arm64 sims, nor is this an official requirement. Basically this kills all Intel based macs, which don't even have arm64.
Sep ’24
First-Party-Cookies Retention Policy using Capacitor App
Hello, we built an ios app using the capacitor framework (app rendered in webview) and recently implemented a cookie based authentication mechanism. What we have no reliable information about is for how long these first-party cookies are stored and if/when they are cleared by some Apple policy. There is a lot of conflicting information out there and I want to reach out here to get some definitive information about this topic. For how long are first-party cookies persisted using ios webview via capacitor. Is there any way to influence that behaviour? Thank you very much. Best Regards Marcus
Topic: Safari & Web SubTopic: General Tags:
0
0
381
Sep ’24
Reply to SFSafariViewController not loading web pages on Xcode 16 Simulator with iOS 18
I have the same problem. I was using SFAuthenticationSession and updated to ASWebAuthenticationSession, but still the same issue. What I've found: M1 Max + M1 Pro Mac + Xcode 16 + iOS 18 Simulator: App freezes M1 Max + M1 Pro Mac + Xcode 16 + iOS 17 Simulator: no issue Intel Mac + Xcode 16 + iOS 18 Simulator: no issue I will start testing it with the Xcode 16.1 beta
Topic: Safari & Web SubTopic: General Tags:
Sep ’24
ASWebAuthenticationSession issue on iOS 18 simulator
We have some third-party SDKs do not support arm64 simulator, so we excluded arm64 for Any iOS Simulator SDK in Excluded Architectures. But in this case, ASWebAuthenticationSession will display abnormally. We submitted FB14853757 during the beta period, but have not received any response. This issue still exists in the official version. I hope it can be resolved. Thank you!
9
0
2.1k
Sep ’24
Safari 18: fetch() in safari extension does not include credentials
It seems Safari 18's fetch() does not include credentials even credentials: include and safari extension has host_permissions for that domain. Is there anyone has this problem? I try to request in popup.js like this: const response = await fetch( url, { method: 'GET', mode: 'cors', credentials: 'include', referrerPolicy: 'no-referrer', } ); and it does not include the cookie from host_permissions. Those code worked in Safari 17 (macOS Sonoma).
6
0
1.6k
Sep ’24
Reply to Issues with Apple Authentication in CloudKit JS
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.
Sep ’24
Issues with Apple Authentication in CloudKit JS
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
1
0
690
Sep ’24
Reply to Web storage partitioning should allow subdomains to share data
@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:
Sep ’24
ASWebAuthenticationSession with https callback works with real device but not on simulator
I'm working on Authenticating a User Through a Web Service and using https callback. When running the project on real device all works as expected, but when I run the same project with the same config on simulator I get this error: Login failed: Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=1 Application with identifier bundle_id is not associated with domain my_domain. Using HTTPS callbacks requires Associated Domains using the webcredentials service type for my_domain. UserInfo={NSLocalizedFailureReason=Application with identifier bundle_id is not associated with domain my_domain. Using HTTPS callbacks requires Associated Domains using the webcredentials service type for my_domain.} Xcode 15.4 iOS 17.5 @available(iOS 17.4, *) public init(url URL: URL, callback: ASWebAuthenticationSession.Callback, completionHandler: @escaping ASWebAuthenticationSession.CompletionHandler)
0
0
677
Sep ’24
Does "Locked and hidden apps" feature of iOS 18 support deep link?
Our app includes showing external web service with WebView or Safari and returning to the app with custom URL scheme or universal link. When we set Hide and Require Face ID feature which was available on iOS 18, neither custom URL scheme nor universal link activated the app. If we only set Require Face ID, the deep link worked properly. Here is what we've tried: Define custom URL scheme or universal link in the app https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app Implement external web service with one of the following frameworks ASWebAuthenticationSession https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/ SFSafariViewController https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller Safari WKWebView https://developer.apple.com/documentation/webkit/wkwebview On iOS 18 device, install the app and set H
3
0
1.8k
Sep ’24
Passkey Autofill is not triggered on ASWebAuthenticationSession
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.
1
0
741
Aug ’24
Reply to App Rejected Unable to Login into account for review
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
Aug ’24
Cookies problem in iOS beta 18
I have a hybrid mobile app which loads web server screens in its iframe(which is under the WKWebView); an https request is initiated from the mobile app to the web server which returns the html page to be loaded in the iframe. The calls which are initiated from outside the iframe have cookies maintained in their requests, while the ones initiated from inside the iframe(web server page) loose the cookies and do not inherit them in IOS beta 18 while It worked fine in the previous IOS versions. Anybody has infos about this or similar cases?
5
0
2.5k
Aug ’24