Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to Clearing cookies in SFSafariViewController?
I've noticed that. In additional, in my tests, it seems like session cookies are NOT shared between Safari and SFSafariViewController, but only the presisted cookies (those with a future expiration date). Like you, I wonder if this is by design or a bug. Or perhaps something I'm missing. I've tested this with iOS 9.3.2 on an iPhone 6 as well as 9.2 on the simulator. I've noticed this while testing using SAML (where our IdP uses session cookies) and then confirmed it with a simple test page that sets both session and persisted cookies. When switching between Safari and the App with a SFSafariViewController, only the persisted cookie is shared.So it seems there's separate session cookies between Safari and SFSafariViewController. I can't find any references confirming this. The standard Apple docs just says cookies and other website data are shared while some others report cookies are not consistently shared. Neither distinguish which type
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’16
Issues with Safari 9 Desktop and Live Streams with Cookie-based Tokens
Hello, our company uses live streams with cookie-based tokens. on Safari 9 and desktop, the cookies are not being passed down to the child playlist unless you go to settings -> privacy -> and update the cookies to allow all. For our end-users, they just want to click the link and the stream works. is there a workaround to not having to go to the settings on each desktop browser to enable cookies to get the stream to work?Thanks!
0
0
125
Jun ’16
WKWebView and UIWebView Cookie
Hello,Our apps are using cookies to login mechanism.And determining the user's information with reference to the value written to it.For example:* Is the user logged in?* Who is the user corresponding to the ID?Technically, we read and write the cookie value from NSHTTPCookieStorage through UIWebView in the app or SDK.In WWDC2016 security session, there was a presentation of the ATS.We'll not be able to continue to use the UIWebView in order to cope with the ATS.So, we are considering changes to the WKWebView from UIWebView.I'd like to ask you the following two questions.1. data sync direction between WKWebsiteDataStore and NSHTTPCookieStorageAccording to research, I got below:* WKWebView use WKWebsiteDataStore class to manage cookie* WKWebsiteDataStore sync data with NSHTTPCookie StorageWhich is data sync direction is?a. WKWebsiteDataStore → NSHTTPCookieStorageb. NSHTTPCookieStorage → WKWebsiteDataStorec. NSHTTPCookieStorage → WKWebsiteDataStore or WKWebsiteDataStore → NSHTTPCookie
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
17k
Jun ’16
Xcode crashes installed after time capsule restore
I bought a new larger SSD and installed this in my macbook. Later I did a time capsule restore. Pretty much every thing is perfect except XCode will crash instantly when launching any project or the default project.I am hesitant to reinstall XCode in case it will delete preferences etc. Web searches talked about a missing certififcate. I tried download 3 certificates and adding them with the key chain but this did not work.I have just downloaded XCode 8 Beta to see if this works.I wish to be programming again ASAP but its silly XCode can break down so easily.It could be failing in this reference Library not loaded: @rpath/libswiftIOKit.dylibnThanks,ArtBelow is crash report.Process: Xcode [726]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.3.1 (10188.1)Build Info: IDEFrameworks-10188001000000000~3App Item ID: 497799835App External ID: 817226719Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [726]User ID: 501Date/Time: 2016-06-25 22:36:27.309 -0700
3
0
1.4k
Jun ’16
Reply to HELP!!! Invitation of People to 'Your Team' not working!
Thanks for the post! FYI it looks like the steps have changed slightly with the recent update to the developer portal. - An updated version of your steps:I've just solved it by entering the invitation code manually. Those are the steps to do follow:Go to your invitations list.Open your browsers developer tools in the network sectionClick on resend invitationsFind the invite id in the resend invitations response body. (from the resend invitations post request, It looks something like this){creationTimestamp: 2016-06-30T19:59:57Z, resultCode: 0, userLocale: en_US, teams: [], invites: [{ recipientEmail: example@email.com, dateCreated: 1467314005000, dateExpires: 1469923199000, inviteId: HPWC732K97, inviterName: Example Inviter, recipientRole: MEMBER }] } Clear the caches and cookies and go to this linkand enter the invite id.
Jun ’16
Reply to NSHTTPCookieStorage sharedCookieStorage is empty in 10.11
It turns out 10.11 to sandbox every individual app like iOS.Here is my solution. // To read cookies from Safari NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier:@Cookies]; // To write cookies to the app for (NSHTTPCookie *aCookies in [storage cookies]){ [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:aCookies]; }Hope this would be helpful.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’16
WKUserContentController: subsequent add/remove/add of script message handler results in the handler not being called from JavaScript
tl;drdoWKUserContentController* ucc = self.webView.configuration.userContentController; [ucc addScriptMessageHandler:self name:@serverTimeCallbackHandler]; // add [ucc removeScriptMessageHandlerForName:@serverTimeCallbackHandler]; // remove [ucc addScriptMessageHandler:self name:@serverTimeCallbackHandler]; // add...and window.webkit.messageHandlers.serverTimeCallbackHandler.postMessage(<messageBody>)will not be called from JavaScript.descriptionI faced with issue while using WebKit.framework. It is either framework's fault or inappropriate usage of it.I have a .js file which interacts with a webpage. At the end of its interaction, the script calls window.webkit.messageHandlers.<name>.postMessage(<messageBody>) (function() { var timeZoneCoockieName = 'cTz'; function getServerTimeWithTimeZone() { PageMethods.GetServerTime(function(time) { var serverTime = time; var timezone = getCookie(timeZoneCoockieName); var message = {'time': serverTime, 'timezone': timezone}; window.webkit.messageHandler
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
1.9k
Jul ’16
Reply to WKWebView and UIWebView Cookie
Same here, I was hoping that in iOS 10 WKWebView will get some improvements in this area, but I didnt see much.there are some workarouds, e.g. see here: http://stackoverflow.com/questions/26573137/can-i-set-the-cookies-to-be-used-by-a-wkwebviewBut publik API would be better, ot at least switch somewhere to enable sychronization or ...
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’16
Reply to Why do enums have computed properties but not stored properties in Swift?
Static properties are different from a property on an instance of a object or struct or enum. With objects and structs, you have discrete instances of those entities. With enums, you don't, but you still have the type itself. Think of it this way: the type is kind of like a cookie cutter, which obviously is a real object. Objects and structs are like cookies made using the cutter: each one is also a real and independent object, and you can decorate each one differently (instance properties—both stored and computed). You can also bend the cookie cutter into a different shape (static properties).With enums, all you have is the cookie cutter. You can take photographs of it and share them around, but that's it. There are no real instances of an enum. You can still bend the cookie cutter around (static properties), but you have no cookies to decorate. However, you can imagine what the cookies would look like and make plans based on it. Those are get-on
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’16
IPC via FSSafariFrame
Hi,we figured out a way of doing IPC via FSSafariFrame. What we basically do is have app A set Cookies which can then be retrieved by App B. This is not a hack but looks like an intended use case. My question is: Is this something that might cause a problem in the review process? I'm really confused about it as it is so obvious to use this for IPC, but then again there is Apples history in not allowing IPC.Best,Philip
0
0
100
Jul ’16
Xcode 7.3 crashes when opening a particular project
I have a project that crashes Xcode whenever I load it. I've tried deleting the app's Derived Data, and would try cleaning the project, except that it crashes too quickly for me to get to the menu to do that. From the crash log, it looks like it has something to do with OpenGL, but I have been able to open another project that uses OpenGL without problems. Would re-installing Xcode help?I'd be grateful for any advice on what to try before doing a re-install of Xcode. Here's the first part of the crash log:Process: Xcode [54494]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.3.1 (10188.1)Build Info: IDEFrameworks-10188001000000000~3App Item ID: 497799835App External ID: 817226719Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [54494]User ID: 501Date/Time: 2016-07-28 13:44:38.780 -0600OS Version: Mac OS X 10.11.5 (15F34)Report Version: 11Anonymous UUID: 8B2173F4-2460-A641-E526-F48D3369DED8Sleep/Wake UUID: 55EC42E6-E25D-4990-9CBD-996B705B1E0BTime Awa
0
0
377
Jul ’16