Search results for

ASWebAuthenticationSession cookie

1,297 results found

Post

Replies

Boosts

Views

Activity

Autofill previously saved password on a new domain inside ASWebAuthenticationSession
Is there some way to suggest to the system that it should autofill passwords in a ASWebAuthenticationSession on a domain not previously associated with my app? I'm working on an app that currently has native login and registration screens, password autofill works great and links credentials it to my associated domains. I now need to move these login and registration screens to use ASWebAuthenticationSession and have users authenticate on a website on a new domain. The system does not autofill my apps credentials on these pages. I can add this new domain as an associated domain, and new registrations are able to save the password and then autofill it later. But I can't get previously saved passwords to autofill on this new domain. Is that possible? I did manage to use Shared Web Credentials to save the users credentials against the new domain when they login. But this will only migrate users that login between now and when I switch to ASWebAuthenticationSession, not all users will be
0
0
920
Nov ’21
Reply to URLRequest.httpShouldHandleCookies is broken beyond repair.
I tested further with a tool to see the https traffic (Charles). I can do this when I start the app urlRequest.httpShouldHandleCookies = true //Always inject cookies Or I can do this when I start the app urlRequest.httpShouldHandleCookies = false //Never inject cookies But if I change it on the fly, as soon as it is set to false, even if I set it to true later, it will never inject the cookies. urlRequest.httpShouldHandleCookies = isSendCookies //Never inject cookies
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
URLRequest.httpShouldHandleCookies is broken beyond repair.
I create a new URLRequest(url: myUrl) object every time before calling URLSession.shared.dataTask(with: urlRequest). I wait for one request to complete before making another call, so no timing problem possible. If I set it to false, it does not inject cookies. If I set it to true, it does send cookies. So everything is fine? NO! If you sometimes set it to false for some calls and to true for other calls it will always not inject cookies. So if you set it to false, even if you set it to true for other calls it will never ever work. I don't know how they manage to create such a bug, but it require some special kind of evil intentions. Note : I always call the exact same domain and I always have my cookies.
2
0
1.7k
Nov ’21
Reply to 403 Error with URLSession.downloadTask (SwiftUI)
More information: I copied the download code from this program and created a new program. It is able to download the file (getting an HTTP status code of 200). So I now think there is something cached in the original program that is causing it to be blocked. If this were a browser, I would clear the caches/cookies/etc. How can I do that with URLSession? I deleted the CACHES folder under the Library/Containers. I even deleted the entire sandbox under Library/Containers (the program rebuilt it). Still getting the 403 error.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to App Store Analytics API
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to How i can export analytic data from Itunes Connect
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to iTunes Analytics API
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to App Analytical API
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to API for app analytics
I can get analytics data from API but I do not how I can get dqsid? I take it from the browser cookie but I want to get dqsid param from API. Do you have any ideas? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
Reply to Get data from API - App analytics acquisition
I can get analytics data from API but I do not how I can get dqsid? import requests import json url = https://appstoreconnect.apple.com/analytics/api/v1/data/time-series adamId = 0000000000 # App ID measures = installs # or impressionsTotalUnique cookie_dqsid = dqsid=ey.... # ????? payload = json.dumps({ adamId: [adamId], measures: [measures], frequency: day, startTime: 2021-10-16T00:00:00Z, endTime: 2021-11-14T00:00:00Z, group: { metric: measures, dimension: source, rank: DESCENDING, limit: 100 } }) headers = { 'Host': 'appstoreconnect.apple.com', 'X-Requested-By': 'dev.apple.com', 'Cookie': cookie_dqsid, 'Content-Type': 'application/json' } response = requests.request(POST, url, headers=headers, data=payload, allow_redirects=False) print(response.text)
Nov ’21
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
Nov ’21
Reply to Why the first item I tap on a SwiftUI List becomes nil when present it in a sheet
Unfortunately, there's a known issue when you want to use @State variables inside a closure passed to .sheet. (Seems Apple does not think this issue as a thing to be fixed.) One possible workaround is declaring another view and pass the binding to it: struct UpdateStateProperty: View { var items:[Item] = [Item(name: Oranges), Item(name: Apples), Item(name: Cookies) ] @State private var presentView = false @State private var selectedItem: Item? var body: some View { List{ ForEach(items){ item in HStack{ Text(item.name) }.onTapGesture { selectedItem = item presentView.toggle() } } } .sheet(isPresented: $presentView){ MySheetView(selectedItem: $selectedItem) } } } struct MySheetView: View { @Binding var selectedItem: Item? var body: some View { Text((selectedItem?.name ?? *nil*)) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Why the first item I tap on a SwiftUI List becomes nil when present it in a sheet
Can someone please explain why the first time I tap on an item from the list, the selectedItem?.name becomes nil? The second time it shows the right item name correctly but not the first time, why?. I was expecting that to have a value even the first time since I'm setting it in the onTapGesture method selectedItem = item. // model struct Item: Identifiable{ var id = UUID() var name:String } // SwiftUI struct UpdateStateProperty: View { var items:[Item] = [Item(name: Oranges), Item(name: Apples), Item(name: Cookies) ] @State private var presentView = false @State private var selectedItem: Item? var body: some View { List{ ForEach(items){ item in HStack{ Text(item.name) }.onTapGesture { selectedItem = item presentView.toggle() } } } .sheet(isPresented: $presentView){ Text((selectedItem?.name) as String) } } }
2
0
2.8k
Nov ’21