Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Reply to I've paid for the Apple Developer Program and i've received my activation code but whenever i click it, it says "We are unable to activate your Apple Developer Program membership. We have received your purchase information and will email you shortly to v
Hello, I fixed this problem.At first I use Google Chrome browser to register, purchase and get an activation code, however the activation process gets unknown error and cannot complete.I switch to Safari browser, login and activate succesfully. Maybe there is a problem with website's cookies.
Feb ’17
NSHTTPCookie Lifecycle Clarification
Hello,I have an app that stores a session cookie in NSHTTPCookieStorage. That cookie is used during app state restoration to either let the user back into the application or present the login screen. I've noticed that on certain scenarios, the session restoration fails as the cookie is no longer present in the cookie storage. I've observed the server transactions that created the cookie and confirmed that the cookie's expiration date had not yet occurred. I'm wondering if someone could clarify what kind of transaction update strategy NSHTTPCookieStorage uses (so that I can confirm that the cookies are not being lost in the write/update) and if there is any defined behavior for evicting a cookie before its expiration date.Thanks,madsolar8582
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
427
Mar ’17
Reply to How to download a file/Data after verifying the “Content_Type” from **decidePolicyForNavigationResponse** in WKWebview?
To start, error 401 means “Unauthorized”, meaning that the request failed but could succeed if you authenticated properly.Web sites usually authenticate requests in one of three ways:CookiesHTTP authentication (Basic, Digest, and so on)Some custom scheme, like a custom HTTP headerThe first approach is by far the most common, but you’ll have to confirm which approach is in play before moving on. There may be helpful hints in the 401 response itself (for example, a WWW-Authenticate header), or you may need to look at how the web browser is doing its authentication. If, as I suspect, the site is using cookies, you’ll have to copy the cookies from the web view to your native request. This can be a bit tricky. There is, alas, no way to set up an WKWebView to share its cookie context with an NSURLSession (although that would make a fine enhancement request; if you do file such a request, please post your bug number, just for the record). In most cases you can get the required cookies
Topic: Programming Languages SubTopic: General Tags:
Mar ’17
Reply to Website automatic sign in ?
You’ll need to provide more specific details if you want a detailed answer. Reading your question I’m not even sure if you’re asking about how to do this on the server side or on the client side? If it’s on the client side, the answer depends on how the server side works. Does it, say, using cookies for authentication? Or HTTP authentication? Or OAuth? Different web servers work in different ways, making a general answer impossible.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:
Mar ’17
Reply to wkwebview links not working ?
Whilst looking into cookies I found something very odd. To get a cookie for stay signed in I used Youtube as a test and after signing in tried a google search and came to the same problem, google search links don't do anything. However after signing out from youtube it works again.Is there somewhere I can put this for attention / bug report ?
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’17
Reply to NSURLSession and failed client certificate requests
I dug into this issue as part of a DTS incident (s. 656775591) and my final conclusion was:There’s no direct answer to this problem, so the other developer ended up filing an enhancement request about this (r. 29992970). Feel free to file your own bug report describing your own specific requirements here.The NSURLErrorClientCertificateRequired error you see in this case is triggered by a specific sequence of events: If the request fails with 403And the delegate responded to the client identity authentication challengeAnd the app has multiple digital identities in its keychain (this criteria is only applied on macOS; on iOS-based platforms it’s assumed to be true)Fail the request with NSURLErrorClientCertificateRequiredOtherwise, deliver the 403 responseIf you have any control over the server then a good way to approach this issue is to have it set the certificate_authorities field in the CertificateRequest message (see Section 7.4.4 of RFC 5246). You can get this from the client identity authentication challe
Mar ’17
WebView Google search links not working ?
I had started another link a while ago in swift catagory but not much of a response, so ...With either a WKWebView / or WebView. Searching with Google initially works fine, perform search and click a link which goes to that site, but after signing in to a site e.g. Youtube / Google and a cookie is set, the links in a Google search no longer work. With WKWebView no noticable complaints, but WebView func ... didRecieveTitle shows a 404 error.The rest of this is in the previous link ... https://forums.developer.apple.com/thread/72557
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
609
Mar ’17
sockaddr swizzling in sf_connect_out_func ?
I'm implementing a kext that needs to redirect some outgoing connections via a transparent proxy app on the same machine.Our Proof of Concept is working wonderfully by modifying the 'to' sockaddr passed into sf_connect_out_func.e.g for AF_INET addressesstatic errno_t my_connect_out(void *cookie, socket_t so, const struct sockaddr *to) { if (to->sa_family == AF_INET && (ip address and port is one I want to redirect)) { struct sockaddr_in* toAsIPv4 = (struct sockaddr_in*)to; toAsIPv4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); toAsIPv4->sin_port = htons(proxyPortNumber); } return 0; }This has been working great for a while without issue, but the fact that the 'to' parameter is declared as a const struct makes me wonder if I'm misusing the filter function by actually modifying *to. Should I be worried or is the sf_connect_out_func wrong in declaring *to as a const?If I am misusing it, any other suggestions on how to correctly redirect from conntect_out?Thanks
0
0
413
Mar ’17
Why has my new app disappeared from itunes connect "My Apps" view?
I created a new app in itunes connect, entered some of the information, saved it, and returned to the My Apps view. The app I created does not show up in the My Apps view. I have tried logging out and back in, resetting browser cookies, and I still do not see the new app. I think the app must have been created, since I can't use that bundle id to make another app, but I cannot see the app I created. Any ideas?
0
0
361
Mar ’17