Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to Safari 16.4 seems to lose session cookies on asset requests or javascript fetches.
Since this problem still exists in the latest Safari version (16.5.2) and we're having problems with this as well. I've added some details of our cookie problem when loading (rendered JavaScript) assets on https://bugs.webkit.org/show_bug.cgi?id=255524 It seems that any value in the SameSite attribute of the cookies causes this to happen. We could see that just 4 of the 7 cookies were kept during all requests and the other three get lost from time to time. Hoping for an official fix soon.
Topic: Safari & Web SubTopic: General Tags:
Jul ’23
Expired Cookie Returned in document.cookie
Seeing an issue where document.cookie is returning an expired cookie. This cookie is correctly not sent in requests and is not displayed in the web inspector (Storage -> Cookies). Problem persists until safari is restarted. Affects the following user agents... Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1 Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1 Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Flipboard/4.2.140 Mozilla/5.0 (iPad; CPU OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4844.59 Mobile/15E148 Safari/604.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15 Mozilla/5.0 (iPhone; CPU iPhone OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (K
Topic: Safari & Web SubTopic: General Tags:
2
0
1.1k
Jul ’23
Reply to Expired Cookie Returned in document.cookie
Even If you are API call is clearing cookies (Set-cookie), Still you need clear cookies manually as well in your browser for Safari. Either you can use the following code document.cookie = YOUR_COOKIE_NAME=;expires=Thu, 01-Jan-1970 00:00:01 GMT;domain=+document.location.host or you can use js-cookie to manage cookies by adding the below function export function removeFromCookies(keys = []) { keys.forEach(key => // For Safari we need to pass the domain name to remove the cookie Cookies.remove(key, { domain: window.location.host, expires: 'Thu, 01-Jan-1970 00:00:01 GMT', }), ); } Thank you
Topic: Safari & Web SubTopic: General Tags:
Jul ’23
Reply to Passkey registration and authentication on iPhone using native application
I could interpret this question in two different ways. I'm not sure which was intended, so I'll try to answer both. The app is expecting user B to sign in (e.g. B was the last account used on the device, but its cookies expired and needs to sign back in). The system passkey sheet comes up and I (the user) see passkeys for both A and B. I select A's passkey. Now, because the app was expecting user B to sign in, and I provided some valid assertion, I'm signed in as user B even though I used A's passkey. If this is happening, it's a security error on the server side. The server should check the credentialID of the returned assertion and verify that it matches the user expected to be signed in, or (ideally) should just sign in the user that the credential ID belongs to (i.e. in this case, I should have been signed in to A's account even though the app expected me to sign in to B). The app is trying to perform an authorization for something specific to user B (e.g. a step-up re-auth protecting an importan
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’23
Reply to Getting not entitled error with WaterSubmersionManager
Could anyone please share a simple some instructions on just getting measurement updates. I didn't develop for a long time and getting back to it. Went through various courses quickly to catchup what I have missed, but I simply cant get CMWaterSubmersion manager even to build. I am following documentation, but making cookie mistakes and getting error after error net even being sure how many mistakes I did already. I am creating a separate class and adding trying to start monitoring data. Registered for motion data, edited plist etc. But then getting missing initializer or non conformation to CMWaterSubmersionManagerDelegate etc etc. Can find any simple code example anywhere on the internet.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’23
Reply to Creating Passkeys on SDKs
There is no way to draw a security boundary between different regions of code in the same process. Either the entire process has access to the credentials or nothing in the process does 🙂. If you want to allow a link account (aka federated sign-in) feature, you likely want to use OAuth with a web-based sign-in flow. Once your server supports that, it can be easily integrated into your SDK with ASWebAuthenticationSession.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’23
On the Sales and Trends page I get a "Your Apple ID is currently pending" message.
On June 7, 2023, I put the paid app in the AppStore, filled out all the agreements, tax and banking information. The only thing that is still not filled out is the tax information for Australia, when I want to fill it out - they ask me if I am an Australian taxpayer and if I have an Australian taxpayer ID, when I check that no, they tell me that in this case you do not need to fill out anything, and this form remains unfilled. I tried many things, cleared cookies, logged in through another clean browser, wrote three letters to support in four days, in response to me - silence. Even if I just have to wait, I want to know for sure, rather than guess at the possible causes as a consequence of the silence of support.
3
0
1.2k
Jun ’23
Clear App Cache
I am using WKWebView inside my Swift App for SSO login. Now, SSO session is retained due to cookies saved. In Android there's an option to clear the cache or clear data from their settings Apps. Can I make my iOS App eligible for such a feature? I don't want to give an option inside my Application to clear the cache. is there any external option available which can be used for this inspite of Re-installing the application.
1
0
6.8k
Jun ’23
matchStreamingBuffer causes an NSException
Hi, I am using ShazamKit to detect songs from a live stream. I am using matchStreamingBuffer with a PCMBuffer. It looks like it works for the most part, but sometimes it throws an NSException. Here's the code calling the match: engine.mainMixerNode.installTap(onBus: 0, bufferSize: 4096, format: options.audioFormat) { buffer, time in do { self.session.matchStreamingBuffer(buffer, at: time) } catch { } } The exception: Supplied audio format is not supported { mediaType:'soun' mediaSubType:'lpcm' mediaSpecific: { ASBD: { mSampleRate: 44100.000000 mFormatID: 'lpcm' mFormatFlags: 0x29 mBytesPerPacket: 4 mFramesPerPacket: 1 mBytesPerFrame: 4 mChannelsPerFrame: 2 mBitsPerChannel: 32 } cookie: {(null)} ACL: {Stereo (L R)} FormatList Array: { Index: 0 ChannelLayoutTag: 0x650002 ASBD: { mSampleRate: 44100.000000 mFormatID: 'lpcm' mFormatFlags: 0x29 mBytesPerPacket: 4 mFramesPerPacket: 1 mBytesPerFrame: 4 mChannelsPerFrame: 2 mBitsPerChannel: 32 }} } extensions: {(null)} } This is the stack stack: 0 CoreFounda
3
0
897
Jun ’23
URLSession Mystery Response
I’m having a very odd problem in which my URLSession response works the first time, but almost always fails on subsequent calls. It’s taken me forever to debug because I needed to examine the response headers to determine anything at all. I used Proxyman based on a recommendation from Donny Wals -- https://www.donnywals.com/debugging-network-traffic-with-proxyman/ -- and — as far as I can tell — the only differences between the calls is that the first call returns: HTTP/1.1 200 OK Date: Tue, 06 Jun 2023 14:06:08 GMT Server: Apache Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Headers: Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control Vary: Accept-Encoding,User-Agent Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Content-Encoding: gzip Set-Cookie: PHPSESSID=d10701af2da595b698c57f183e76a709; path=/ Upgrade: h2 Connection: Upgrade,
2
0
863
Jun ’23
Set HTTP headers on ASWebAuthenticationSession?
We need to append some values in the User-Agent HTTP header for our SSO flows. We use the ASWebAuthenticationSession class as you should, but I can't find any information on how to modify the headers in this web view. I have tried setting the global user agent via UserDefaults.standard.register(defaults: [UserAgent: fakeUserAgent]) While it does change the User-Agent in WKWebView, it seemingly does not impact the ASWebAuthenticationSession. There are also no configuration settings to change headers or User-Agent on ASWebAuthenticationSession. Is it not possible by security design?
1
0
1.5k
Jun ’23
iOS Safari Web Extension asking permission to use extension on a webpage.
I've developed a ios safari web extension for my app and everything seemed to work fine in the simulator and on my device. However, I've noticed that in some cases when the user tries to give permission to the extension inside safari, the system displays an alert asking for permissions to all the sites saved in the user's keychain. It's really strange. I've not been able to always reproduce this behavior, sometimes it works normally and it asks for permission just for the domain where the user is on. The issue has become a real problem when I've discovered that when the user has a lot of saved passwords for sites in the keychain, the Safari freezes when asking for permission and becomes absolutely unusable, forcing the user to close it. Here is the manifest for my extension: { manifest_version: 2, content_security_policy: script-src 'self' https://ssl.google-analytics.com; object-src 'self', background: { scripts: [ browser-polyfill.js, background.js ], persistent: false }, content_scripts: [{ js: [ browser-p
1
0
2.4k
Jun ’23