Has anyone ever got Calendar to send cookies?We are currently developing a CalDAV Service for an online platform with Basic Authentication over HTTPS. So far everything works fine with Apple Calendar on OSX and iOS.When Calendar tries to sync events it contacts our Server which answers with a 401 status code asking for a HTTP Basic Authentication. Calendar then sends the credentials and is granted access. At the same time our server sends an PHP Session Cookie in order to keep the device logged in for some time.This works fine with Calendar on iOS but Calendar on OSX for some reason refuses to send the session cookie.Syncing still works but as 7 calendars are checked on every sync for every user this results in permanent reauthentication and thousands of new sessions in our database.I would appreciate any hint on how we could get OSX Calendar to either send cookies or any other kind of identifying token. Maybe there are better ways for authentication than HTTP Basic Auth. Digest Aut
Search results for
ASWebAuthenticationSession cookie
1,295 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I re-submitted a new version of my App which was approved and released today.This appears to have fixed what ever the issue was.Then some hours later another of my Apps get's it's update approved and released and won't install.Something is badly broken on the App store delivery.I'm having to re-submit another version now just to fix it.Support have been hopelessly slow sending me cookie cutter type support emails.Not good enough...
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
Same error, removed cookies, but still wasn't able to open page as needed.. Your Apple ID is currently pending
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
I’m posting this here primarily so that Future Quinn™ can reference it. Hopefully other folks will find it useful as well.I’ve recently been playing around with mitmproxy, which is working out well for me. One feature I really like is the ability to programmatically extract information from traces created the mitmproxy tool. The workflow looks something like this: Run mitmproxy.Use the l command to filter the flows it captures. For example, ~d example.com will only shows requests to example.com.Run my test.Use the w command to save the flows to a file.Extract content from the file programmatically using the script facility built in to mitmdump. For example:$ mitmdump -r test1.flows -s filter.py -n -q … output from my filter …The filters themselves are written in Python (yay Python!) and have deep access to the flows. For example:from urlparse import urlparse def response(context, flow): u = urlparse(flow.request.url) if u.hostname.endswith(example.com): cookie = flow.request.headers[Cookie]
… I would like it to be the credentials necessary to login to my father's website. How can I go about doing this?That really depends on how that web site does authentication:Some sites use HTTP authentication, and which is exposed to apps via NSURLSession’s authentication challenge delegate callbacks.Most user-facing web site use cookie based authentication, where the act of logging in general a cookie that the site authenticates on subsequent requests.Some of those also support alternative authentication schemes for programmatic access.You’re going to have to talk to the site owners to figure out how it does authentication.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
Programming Languages
SubTopic:
Swift
Tags:
yes - tried multiple browsers, deleting cookies, etc., etc. This only affects the sales and trends page. I have no outstanding contracts, etc. Followed up on the Contact us link, but haven't yet received a response. I was able to see some information regarding sales trends for last week on the app, but none of the information seemed updated and many of the links in the app such as territory, etc. did not work.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Hello,I have a problem using HTTP PUT with iOS 10 beta.I use the code to make a PUT request. While it works fine with iOS 9.3.4 it doesn’t work in iOS 10 beta 6 NSString *str = @<myData>Some xml Data</myData>; NSData *xmlData = [str dataUsingEncoding:NSUTF8StringEncoding]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData ]; [request setTimeoutInterval:30]; NSString *aUrl = @https:/myServer [request setURL:[NSURL URLWithString: aUrl ]]; [request setHTTPMethod:@PUT]; [request setValue:@text/xml forHTTPHeaderField:@Content-type]; NSMutableData *postBody = [NSMutableData data]; [postBody appendData:xmlData]; [request setHTTPBody:postBody]; NSURLSessionConfiguration *defaultConfigObject = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession *defaultSession = [NSURLSession sessionWithConfiguration: defaultConfigObject delegate: self delegateQueue: nil]; dispatch_semaphore_t semaphore = dispatch_semaphore_
IOS10 beta Safari drops the jsession cookie when playing a wav file using HTML5 audio tag.
Safari seems to be only adding those cookies whose path is different from the request url path. But this seesm to work on other browsers on IOS9as these may be creating the cookies on the root of the domain.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
For anyone else struggling to get the cookies from an URLResponse, you need to jump through hoops like this now: guard let responseActual = response else { print(No response) return } guard let headers = responseActual.allHeaderFields as NSDictionary? as! [String:String]? else { print(wrong headers ... or so: (responseActual.allHeaderFields)) return } guard let url = responseActual.url else { print(missing url from response: (responseActual)) return } let cookies = HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
Topic:
Programming Languages
SubTopic:
Swift
Tags:
This is really frustrating, I can't get around Developer website or even contact support. I've already deleted cookies multiple times and used a different browser.I'm simply trying to download Quartz Composer or in effect, Graphics Tools for Xcode.Help please?
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags:
Signing Certificates
Provisioning Profiles
Below is my code snippet:/*cookie attached in request part*/ NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:httpsURL cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:5.0f]; [request setValue:@cookie1=value1 forHTTPHeaderField:@Cookie]; /*cookie attached using NSHTTPCookie*/ NSMutableDictionary *cookieProperties = [NSMutableDictionary dictionary]; [cookieProperties setObject:@cookie2 forKey:NSHTTPCookieName]; [cookieProperties setObject:@value2 forKey:NSHTTPCookieValue]; [cookieProperties setObject:[request URL].absoluteString forKey:NSHTTPCookieOriginURL]; [cookieProperties setObject:@/ forKey:NSHTTPCookiePath]; NSHTTPCookie *cookie = [NSHTTPCookie cookieWithProperties:cookieProperties]; NSArray *arr = [NSArray arrayWithObjects:cookie, nil]; [request setAllHTTPHeaderFields:headers];Question:Now using the above configuration does my connection consider both the cookies during the request?
Your question doesn’t seem to gel with your post’s subject. In your post’s subject you mention NSHTTPCookieStorage but you never put a cookie into NSHTTPCookieStorage in the code example you show.To answer the question from your post’s subject, the session’s cookie store (NSHTTPCookieStorage) is only consulted if you leave out the Cookie header in request. If you want to get this sort of merging behaviour, you can fetch the cookies from the cookie store then merge in your cookies. Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
App & System Services
SubTopic:
Networking
Tags:
I want to read domain specific cookies for safari browser to manage session in safari extension. I implemented in chrome by using following code blockchrome.cookies.get({'url':'domainurl', 'name':'cookie_key'});So how it can be done in safari browser?
Questions:Is it possible to set up Facebook login for use in the CNA?If so, please provide links to examples if they exist.Does CNA documentation exist for developers?If so, please provide a link.Can you debug the CNA screen with developer tools?If so, how?Is it possible to force the use of Safari instead of the CNA?If so, how?Details:I have created a captive portal login page that uses an email submission form or a Facebook login button. The login button uses javascript as documented on Facebook's developer resources to open a window and log the user in.Testing:CNA:Clicking the Facebook sign in button redirects to the facebook login after multiple clicks. Facebook login page allows submission of username and password but does not generate these entries from cookies. After submission, the page is blank and login is not completed.Full Featured Browsers:In Safari, Chrome, Firefox, etc. the social sign is functioning and works as expected. All browsers redirect the user to the login page, the user may u