Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to NSURLSession catch redirect not working
- I cannot find task.resume() in your code. Is it included in the `//....`? Also I needed to fill unmatching `)`.- Xcode claims delegate method signature should be:func URLSession(session: NSURLSession, task: NSURLSessionTask, willPerformHTTPRedirection response: NSHTTPURLResponse, newRequest request: NSURLRequest, completionHandler: (NSURLRequest?) -> Void)The type of `completionHandler` is (NSURLRequest?) -> Void, not (NSURLRequest!) -> Void .- In general, you have no need to handle redirection by yourself. NSURLSession and its tasks will do it appropriately, including cookie handling.- Usual browsers do not send back all header fields included in the redirecting response header. In some cases, sending back all may cause problems.You might need to handle HTTPCookieStorage properly, rather than implementing redirection delegate method.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’15
Universal link support on iOS 9
I am trying to set up Universal link functionality for my iOS app. Spent almost more than a day, the link always launches in Safari rather than in my application.OS version : iOS9apple-app-site-association (unsigned file) content:{ applinks: { apps: [], details: [ { appID: 3XSXXXXX.com.xxxx.myapp, paths: [ *] } ] }}The above file is available at the https://myserver.com/apple-app-site-association.Here is the response headers for file.HTTP/1.1 200 OKServer: Apache-Coyote/1.1Set-Cookie: JSESSIONID=EE8469FED2544A965E30A9CB1776368C; Path=/; Secure; HttpOnlySet-Cookie: ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; HttpOnlySet-Cookie: ut=jPC24b1ghCjIRWxAG3tw5Aru5ALLIE9tJBCOv-DLVOE; Expires=Fri, 20-Oct-2017 22:56:44 GMT; Path=/; HttpOnlySet-Cookie: SESSION_TOKEN=WBre4NJuzIjhqrR68hxFxLmLHd32LQoC5SKFlywfRdE; Expires=Fri, 20-Oct-2017 22:56:44 GMT; Path=/; HttpOnlyAccept-Ranges: bytesETag: W/201-1448058739000Last-Modified: Fri, 20 Nov 2015 22:32:19
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
456
Nov ’15
Reporter.jar can't connect to the network
When I attempt to run Reporter.jar on one of our servers, I'm greeted with the error message Network is not available. Check connection and try again.. However, the server does have access to the internet and ipv6 is enabled. With that said, running Reporter.jar on my local machine does not raise this error.Running the Reporter.jar in debug mode also says that it's able to connect.java -jar Reporter.jar p=Reporter.properties m=robot.xml Sales.debugSystem Properties Java: Oracle Corporation 1.7.0_85 OS: Linux 2.6.32-431.17.1.el6.x86_64 amd64 Trying to connect to Sales... Not using a proxy. Connected. Response headers: null: HTTP/1.1 200 OK Content-Language: en-US Date: Mon, 23 Nov 2015 23:42:10 GMT Content-Length: 317 Set-Cookie: JSESSIONID=WYHiofe52hoS0VVwU+gEM6Fi; Path=/reportservice Content-Type: text/html;charset=ISO-8859-1 X-Powered-By: JSP/2.2 Server: Apache-Coyote/1.1 Closing connection... Done.Any help would be appreciated.
9
0
4.9k
Nov ’15
AVPlayer and Cookie Expiration
Hi,I have some questions about how AVPlayer handles updates of a cookie's expiration time.We do something like this:1) Send a GET request to server which sets authentication cookie. This cookie has a short expiration time, CookieExpiryTime.2) Start AVPlayer. The authentication cookie is included in the AES key request.3) Every n minutes (where n is CookieExpiryTime/2), send new GET request to authentication server to get updated cookie expiration time. By logging all cookies in NSHTTPCookieStorage.sharedHTTPCookieStorage() we can see that the expiration time of the cookie is updated.The problem:When a key is requested after the expiration time of the first cookie from 1), the cookie is no longer included in the AES key request.But shouldn't the updated cookie (with extended expiration time) be considered?Question 1) Does AVPlayer filter out expired cookies when doing the AES key requests?Question 2) Does AVPlaye
1
0
1.6k
Dec ’15
Help with crash report
I recently received this crash report from a user using El Capitan, and my development environment is El Capitan as well.I am trying to understand what is causing the crash, but having difficulty reading the crash report.Compared to usual, it doesn't seem to specifically say what the matter is.Help would be much appreciated. Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYGlobal Trace Buffer (reverse chronological seconds):1.146487 CFNetwork 0x00007fff8eaaacdf TCP Conn 0x7fca2a838be0 started1.146571 CFNetwork 0x00007fff8eaaacdf TCP Conn 0x7fca2a90fc80 started1.213608 CFNetwork 0x00007fff8ea6e86b Creating default cookie storage with default identifier1.213608 CFNetwork 0x00007fff8ea6e836 Faulting in CFHTTPCookieStorage singleton1.213608 CFNetwork 0x00007fff8ea6e6c5 Faulting in NSHTTPCookieStorage singletonThread 0 Crashed:: Dispatch queue: com.apple.main-thread0 com.- 0x000000010f23610e 0x10f213000 + 1436301 com.- 0x0
6
0
3.5k
Dec ’15
Reply to iOS 9.2 Unable to install managed app from MDM
I can confirm that we also have the same issue with MobileIron.After some investigation, it looks like there is a bug in the way Apple Store the Cookies for the HTTP(S) session related to the binary download which results in a Segmentation Fault on the device. So nothing we can do and unfortunately need (again) to wait on Apple to fix it.Note that the first time a managed application is installed, it's working perfectly well. As soon as we try to install any other managed application, it's not working anymore.
Dec ’15
Faulting in NSHTTPCookieStorage singleton?
I recently developed a Mac app that runs perfectly fine on my machine, but crashes on one of my beta tester's. I've been sent the crash report, but I honestly have no idea how to decipher the issue. From what I can tell, the salient issue is described in the Global Trace Buffer:Global Trace Buffer (reverse chronological seconds): 18446744049.082520 CFNetwork 0x00007fff8882acdf TCP Conn 0x7fee28674dc0 started 18446744049.124989 CFNetwork 0x00007fff887ee86b Creating default cookie storage with default identifier 18446744049.124989 CFNetwork 0x00007fff887ee836 Faulting in CFHTTPCookieStorage singleton 18446744049.124989 CFNetwork 0x00007fff887ee6c5 Faulting in NSHTTPCookieStorage singletonAnd the exception description:Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFYHowever, thread 0 says the following:Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.
1
0
5.1k
Dec ’15
Reply to iOS 9.2 MDM Segmentation fault on ManagedApplicationList
Same here!Some Devices already enrolled before 9.2 and fresh enrolled with 9.2 are affected but no all. Saw this problem with iPhones, IPads non supervised and supervised.mdmd-service crash report:...Global Trace Buffer (reverse chronological seconds):0.346490 CFNetwork 0x000000018199584c TCP Conn 0x124d20710 SSL Handshake DONE0.499182 CFNetwork 0x000000018199575c TCP Conn 0x124d20710 starting SSL negotiation0.499742 CFNetwork 0x0000000181a37104 TCP Conn 0x124d20710 complete. fd: 6, err: 00.501162 CFNetwork 0x0000000181a38630 TCP Conn 0x124d20710 event 1. err: 00.582783 CFNetwork 0x0000000181a38708 TCP Conn 0x124d20710 started0.590219 CFNetwork 0x0000000181a8d8f8 Creating default cookie storage with process/bundle identifier0.590219 CFNetwork 0x0000000181a8d888 Faulting in CFHTTPCookieStorage singleton0.590219 CFNetwork 0x0000000181adf558 Faulting in NSHTTPCookieStorage singletonThread 0 name: Dispatch queue: com.apple.main-threadThread 0 Crashed:0 CoreFoundation 0x00000001812a2ebc 0x181298000 + 4473
Dec ’15
can't load web contents in wkwebview
I'm migrating my UIWebView to WKWevView.but It couldn't loaded contents sometimes.it occurred ralely in iOS 8 but frequently in iOS 9.and another question...I found a page regrading to WKWebviewhttps://code.google.com/p/chromium/issues/detail?id=423444in above link, It says WKWebView problems followings- There is no cookie management API, which means there is no obvious way to clear/manage cookies- Protocol handlers no longer work, which breaks several very important features- POST bodies are missing from delegate callbacks, which breaks certain aspects of form handlingis this right?
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
726
Dec ’15
Mac OS X screensaver fails to start with error: “Could not create patch from composition file”
We built a screensaver for Mac OS X called Screensaver Ninja. I'm not the main developer, but I did work a bit on it. Now, the screensaver is not starting on my machine. It works fine for everybody else but I'm at a loss about what's causing it to not start in my machine.In the console, I'm seeing these messages:2015-12-21 10:08:23.426 ScreenSaverEngine[2756]: <QCScreenSaverView: 0x7fd638d4dcc0>: Could not create patch from composition file /Users/pupeno/Library/Containers/com.carouselapps.ScreensaverNinja/Data/Library/Screen Savers/Ninja.saver 2015-12-21 10:08:23.441 ScreenSaverEngine[2756]: <QCScreenSaverView: 0x7fd638f69bb0>: Could not create patch from composition file /Users/pupeno/Library/Containers/com.carouselapps.ScreensaverNinja/Data/Library/Screen Savers/Ninja.saver 2015-12-21 10:08:23.443 ScreenSaverEngine[2756]: <QCScreenSaverView: 0x7fd638c3d7b0>: Could not create patch from composition file /Users/pupeno/Library/Containers/com.carouselapps.ScreensaverNinja/Data/Library/Screen
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
277
Dec ’15
app works in xcode, and in release for all devices but iphone 6s
I have an application that is published in the app store, and it works for all devices except when a 6s is used, the app immediately crashes. What is even more bizarre is it works completely fine in simulator for 6s, I have no idea what to do. Here is some information from a crash log. If any one has experienced this issue and fixed it before, please let me know. Thank you very much.Exception Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYTriggered by Thread: 0Filtered syslog:None foundLast Exception Backtrace:(0x182f74f48 0x19841ff80 0x182f74e18 0x183e68a1c 0x1001695e8 0x100169054 0x198420fc8 0x1984278f8 0x198431db8 0x1001763e4 0x10017b2fc 0x10017dda8 0x10017f7f0 0x198a90668 0x198a8d330 0x198a8be78 0x10017c9ac 0x10017b978 0x100186edc 0x100186980 0x100185ee4 0x10012cd80 0x10012d1d4 0x188508098 0x188507c9c 0x188dcccec 0x188c2af20 0x188c2ad24 0x188c2afec 0x188507ee4 0x188507c9c 0x1000ecf64 0x1000eb9d0 0x1000eba68 0x100142034 0x1001408cc 0x18857d3
3
0
693
Dec ’15
How to tell if a profile has been already installed
Hi There,I have been working on the OTA implementation for quite a while as it is specified in https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/OTASecurity/OTASecurity.html#//apple_ref/doc/uid/TP40009505-CH3-SW7Actually it does work after quite a while so I am fairly happy now.The only thing what is still outstanding and no idea how to implement: How can the server know (apache webserver serving LDAP, /enroll, /profile, SCEP requests) if a User Profile has been installed already?What happens now is that I can insall the User Profile multiple times (two clicks for install each, one for the Device Enrollment and one for the SCEP) and then the profile stays installed as it was before. (This step can be repeated over and over again.)What I look for is something like the profile has already been installed text - how do I know that in the server without asking the user to click ever again? Should I just use a cookie or are is there any other more pr
0
0
220
Jan ’16
Access HTTPOnly cookies with iOS action extension
I need to send post requests in my iOS action extension, but I need to include HTTPOnly cookies in the request. Is there any way to access them? Using `document.cookie` excludes the HTTPOnly cookies as expected. The requests are always to the same domain as the website so there is no cross domain policy violations. I would send the requests via AJAX, but I need to access data in the extension before and after the request. There's no way to go back and forth between javascript and the extension, correct? Any suggestions are appreciated!
2
0
2.4k
Jan ’16