Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Apple Calendar Authentication Cookies
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
0
0
961
Aug ’16
Reply to Apple reviews, approves, releases. Now no one can update due to error: "...could not be downloaded at this time"
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...
Aug ’16
Using mitmproxy to Analyse HTTP[S] Requests
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]
0
0
2.6k
Aug ’16
Reply to How do you create a social login, that is not Facebook/Twitter/Gmail?
… 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:
Aug ’16
Reply to "Apple ID pending" error on Sales and Trends
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.
Aug ’16
Error -1005 "The network connection was lost."
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_
2
0
10k
Aug ’16
Reply to Going from [AnyHashable : Any] to [String : NSObject] w/ b6?
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:
Aug ’16
Does a URL connection in iphone respect the cookies from both NSHTTPCookieStorage and cookies from header field "Cookie"?
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?
1
0
608
Sep ’16
Reply to Does a URL connection in iphone respect the cookies from both NSHTTPCookieStorage and cookies from header field "Cookie"?
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
Sep ’16
Captive Network Assistant
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
2
0
12k
Sep ’16