Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to Use of document.cookie in Safari
I am answering my own post with an update: I solved the issue. The string used to set the cookie had syntax that Safari, and Opera would not allow. That was due to a subtile and important issue with a for loop: a missing break statement. So the difference between Safari (and Opera) and Firefox, Chrome is the cookie string syntax. If secure is specified, it should be in the string by itself and not set to anything. The issue I tracked down was that 'secure=false;' was showing up in the string when it is just set by the presence of absence of 'secure' Thank you for time and attention JK
Topic: Safari & Web SubTopic: General Tags:
Feb ’22
AuthenticationServices - is it completely broken on Catalyst?
I have a SwiftUI app live on the App Store which uses ASWebAuthenticationSession to authenticate against several remote services. It all runs perfectly on iOS but I'm getting a stream of complaints from users running it on Monterey / Catalyst. There seem to be 2 main errors: The auth browser window doesn't anchor properly, so the window will pop-up but it's completely independent of my app, so can easily end-up behind my application (which then appears to have hung) Even worse, on some machines (mostly m1 iMacs) the window doesn't pop-up at all but the OAuth request to the browser sits in some queue somewhere and at a later point when the user happens to restart their browser they will be prompted to login for every single time they clicked on the sign in button in my app. I've seen lots of other reports of the 2nd problem which just seems to happen randomly so I don't have a repro. I've seen a similar number of different ways of implementing ASWebAuthenticationPresentationContextProviding which (I p
1
0
1.8k
Feb ’22
Reply to App Tracking Transparency and Cookies
Do you have any new info about it? We have the same problem - our app is web wrapper and the cookie is only for the session. No tracking at all. Our progress - after long ping-pong with some robot that it is cookie for session, no tracking at all and all responses were like cookies = tracking so you have to implement App Tracking Transparency. So we decided to add ATT to app and filled the form with tracked info (there is nothing tracked) and the robot answered, that we have to explain how we track the user - because we implemented ATT, so we are tracking. Exact example of Catch-22.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’22
How to resolve warnings if using safari-web-extension-converter?
Command Used: xcrun safari-web-extension-converter package-content.safariextension --project-location SafariExtension While running the above command, I am getting below warnings. How to resolve these for Safari for iOS 15? Warnings: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari: manifest_version icons persistent version js content_security_policy matches description tabs cookies activeTab scripts storage applications browser_action web_accessible_resources name run_at
3
0
2.4k
Jan ’22
Reply to ASWebAuthenticationSession won't open the Safari login window on Monterey
This is absolutely not fixed. We use the Auth0 SDK for Oauth2 authentication across various Apple devices, which on macOS wraps ASWebAuthenticationSession, and encounter this behavior relatively frequently. We see it on Monterey, across Safari, Chrome and Brave browsers. I am surprised this isn't getting more attention. The problem is pretty nasty once it triggers -- the user has no idea what is happening or why the login dialog doesn't pop up, and the calling application has no way to detect the condition. We reported it to Auth0 and they closed our bug pretty quickly -- everyone seems to understand this is Apple's problem.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’22
Reply to Is ASWebAuthenticationSession compatible with App Clips?
I shared my code with my main app target and specified a custom url scheme matching the cloudkit-icloud.[containername]://authToken and I see my ASWebAuthenticationSession getting invoked with the new token. So I know that code is wired up properly and functional It is stated in the Exploring App Clips video that they do not support URL Schemes, when I have the same URL scheme specified, safari says Safari cannot open the page because the address is invalid. which makes sense if the App Clip isn't registering the URL with the system. When I try to use the https:// [advanced-app-clip-invocation-url] safari view controller is redirecting to my web page that matches the app clip url--not the app clip itself. Universal links are also explicitly not supported by App Clips either as per the same app clip video. I know there is a lot of interest in App Clips + CloudKit so I'll continue to post my findings.
Dec ’21
Is ASWebAuthenticationSession compatible with App Clips?
Question: Do App Clips support receiving callbacks from ASWebAuthentictionSession's redirectCallbackURL? Context: I'm trying to get CloudKit working in an app clip. Read support is done, but it would be nice for the user to see the capabilities before full download. Presently, I have the CloudKit Web Services successfully invoking redirectURL within SafariViewController, but I haven't figured out how to get it to direct to something the App Clip can get a hold of. CloudKit allows you to specify three different callbackURLs: https:// [freeform] http:// localhost[freeform] cloudkit-icloud.:// [freeform] I am new to AuthenticationSerivces framework so I may have missed something. The desired OAuth doesn't need to be CloudKit/iCloud but any provider. Everything is working except the redirect URL.
2
0
991
Dec ’21
Reply to Cannot add BitBucket Server access token when creating first workflow
I have the same problem :status: 500 content-length: 0 date: Sat, 25 Dec 2021 05:55:05 GMT set-cookie: dqsid=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDA0MTEzOTksImp0aSI6Iloza0htM3pKbjNPVzJFeVpmSVlpd1EifQ.vsHqu0ubLPjSmGSV1mYsWj3Jw_szTv-zLQH1iW7BVng; Max-Age=1800; Expires=Sat, 25 Dec 2021 06:25:04 GMT; Path=/; Secure; HTTPOnly access-control-allow-credentials: true access-control-allow-origin: https://appstoreconnect.apple.com access-control-expose-headers: ETag x-b3-traceid: b7b5752d682d3994 strict-transport-security: max-age=31536000; includeSubDomains; preload x-frame-options: SAMEORIGIN x-content-type-options: nosniff x-xss-protection: 1; mode=block x-apple-jingle-correlation-key: ZERDVHGSF4QEWR77LIJEFP7X5Q x-daiquiri-instance: daiquiri:13851002:mr22p00it-ztbu07032101:7987:21RELEASE200:daiquiri-amp-dsce-asc-int-001-mr x-content-security-policy: script-src 'self' *.apple.com x-daiquiri-instance: daiquiri:18493001:mr85p00it-hyhk03154801:7987:21RELEASE200:daiquiri-amp-all-shared-ext-001-mr x-
Dec ’21
Different SSO behavior for ASWebAuthenticationSession in iOS 14
In our app we're performing authentication using ASWebAuthenticationSession. SSO seems to work fine in iOS 13 for different paths for the same domain but when running the same app in iOS 14, cookies don't seem to be attached to subsequent requests once authenticated in safari window. I'm not sure if it helps : Looking at the logging in instruments when running the app in iOS 14 device, I can see : 00:09.690.903 Default iOS B2c Sample (1691) CFNetwork Default iOS B2c Sample 0x1631f Faulting in NSHTTPCookieStorage singleton 00:09.690.929 Default iOS B2c Sample (1691) CFNetwork Default iOS B2c Sample 0x1631f Faulting in CFHTTPCookieStorage singleton 00:09.690.944 Default iOS B2c Sample (1691) CFNetwork Default iOS B2c Sample 0x1631f Creating default cookie storage with default identifier (Above logs don't happen in iOS 13) and later in iOS 14: 00:10.113.701 Debug iOS B2c Sample (1691) CFNetwork Default iOS B2c Sample 0x1631c Task <88E60E41-6B7B-4787-ABF6-B65C92C8FF4E>.<1> r
19
0
9.1k
Dec ’21
Reply to How to avoid or stop receiving Push Notifications if the user clear cookies?
Hi @MobileTen, I meant not the user case where the user opted out, but the case when the user keeps opted in and is logged out by clearing the session cookie. I expect the user to stop receiving notifications while logged out without user intervention and resume receiving notifications when logged in. With a manual logout is easy, as the server is aware.
Dec ’21
How to avoid or stop receiving Push Notifications if the user clear cookies?
Hi there, I'd like to know how to stop sending/receiving Push Notifications when the user clear cookies in Safari, therefore the session / authentication cookie. The server will never learn the cookie was deleted and it will keep sending Push Notifications to the web client although the user will be logged out. Any thoughts? Thank you.
2
0
736
Dec ’21