I am trying to use ASWebAuthenticationSession web view. After the authentication is complete, the session completion handler is not being called. Hence, the web view doesn't dismiss. Below is the piece of code I am using :guard let authURL = URL(string: https://github.com/login/oauth/authorize?client_id=<client_id>/) else { return } let scheme = octonotes session = ASWebAuthenticationSession.init(url: authURL, callbackURLScheme: scheme, completionHandler: { callbackURL, error in // Handle the callback. print(callbackURL!) print(error!) }) session?.presentationContextProvider = self session?.start()I have set the callback url scheme in info.plist. The same is updated in Targets -> info -> URLAfter running the above code, ASWebAuthenticationSession web view is presented, which provides user with sign in page. Once the authentication is complete, web view does not dismiss unlike WKWebView. There is cancel option on top left of the web view, it calls the completion handler with error
Search results for
ASWebAuthenticationSession cookie
1,297 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I never used.But are sure of the scheme ?May look here:h ttps://dev.to/robotsquidward/quick-guide-to-aswebauthenticationsession-api-changes-in-ios-13-4m8i
Topic:
Programming Languages
SubTopic:
Swift
Tags:
This happened to me after user permissions change.You need to delete cookies for apple.com and relogin.
Topic:
App Store Distribution & Marketing
SubTopic:
TestFlight
Tags:
Hi all~!I got an error code -66681 when AVPlayer starts playing, after I updated iOS version to 13.4.When I checked it on osstatus.com, it named 'kAudioQueueErr_CannotStart' from AudioToolBox.framwork.However I have no any clue what it means.Order versions have no issue. It works perfectly.FYI, I set signed cookies to AVURLAsset and it works with non-drm videos.let cookies = cookieInfo.map { HTTPCookie.cookies(withResponseHeaderFields: [Set-Cookie: ($0.key)=($0.value)], for: url) }.flatMap { $0 } asset = AVURLAsset(url: url, options: [AVURLAssetHTTPCookiesKey : cookies])Issue occures with only drm videos.Could anybody give me some advice about this?
Same. Set a cookie or something, please
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Even after adding sameSite=None; Secure , latest safari version 13 on MacOS 10.15 , we are still seeing an issue of session timed out with third party cookies, and chrome works really well with this approach. Is this expected ? for sure no from above converation or links. Could you guys please confirm . Any further details or information is much appreciated . Thanks
Topic:
App & System Services
SubTopic:
Networking
Tags:
Hi Eskimo,Hope you are doing well !!Even after adding sameSite=None; Secure , latest safari version 13 on MacOS 10.15 , we are still seeing an issue of session timed out with third party cookies, and chrome works really well with this approach. Is this expected ? for sure no from above converation or links mentioned. Could you please confirm . Any further details or information is much appreciated . Just recently seen similar issue on iPad with below detailsSoftware Version – 13.3.1Model Name – iPad Pro (9.7 inch)Any help would be of great help.Thanks in advance.
Topic:
App & System Services
SubTopic:
Networking
Tags:
I have an iframe on my page. As Safari blocks 3rd party cookies, I am trying to use the Storage Access API as suggested here under 'Developer Guidance': https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/. I have copied the following code from here https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API/Using#Accessing_a_user's_cookies_in_an_embedded_cross-origin_iframe:<script type=text/javascript> window.addEventListener('load', () => { document.getElementById('test-button').addEventListener('click', () => { document.hasStorageAccess().then(hasAccess => { console.log('hasAccess: ' + hasAccess); if (!hasAccess) { return document.requestStorageAccess(); } }).then(_ => { console.log('Now we have first-party storage access!'); document.cookie = foo=bar; console.log(`document.cookie: ${document.cookie}`); }).catch(_ => { console.log('error'); }); }); });</script><button id=test-button>Test</button>Browser console output:[Lo
Were you able to figure this out? I found two related threads;https://forums.developer.apple.com/thread/68694https://bugs.webkit.org/show_bug.cgi?id=140205and a post https://medium.com/@flexaddicted/how-to-set-wkwebview-cookie-accept-policy-d8a2d3b77420
Topic:
Safari & Web
SubTopic:
General
Tags:
here is the response with flag -v* Trying 17.154.66.159... * TCP_NODELAY set * Connected to sandbox.itunes.apple.com (17.154.66.159) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -5961 (PR_CONNECT_RESET_ERROR) * TCP connection reset by peer * stopped the pause stream! * Closing connection 0 curl: (35) TCP connection reset by peerand the next one* Trying 17.154.66.159... * TCP_NODELAY set * Connected to sandbox.itunes.apple.com (17.154.66.159) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * ALPN, server accepted to use http/1.1 * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=buy.itunes.apple.com,OU=GNCS Traffic Management,O=Apple Inc.,L=Cupertino,ST=California,C=US,serialNumber=C0806592,incorporationState=California,incorporationCountry=US,businessCategory=Private Organization * start date: Mar 11 0
Topic:
App & System Services
SubTopic:
Apple Pay
Tags:
Hi Guys,Hope you are doing well !!Even after adding sameSite=None; Secure ,HttpOnly on latest safari version 13 on MacOS 10.15 , we are still seeing an issue of session timed out with third party cookies, and chrome works really well with this approach. Is this expected ? Does any one else is facing similar issue ? Any further details or information is much appreciated . Just recently seen similar issue on iPad with below detailsSoftware Version – 13.3.1Model Name – iPad Pro (9.7 inch)Any help would be of great help.Thanks in advance.
I have the same problem. I am using iOS 13.3.1 and the cookie and session does not goes to Safari unless user press Safari icon on the right bottom conor. To be honest, nobody gonna press that button. It gives problem that the website do not konw if it is a new user or a return user.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I am using IPhone X for sign in with apple with iOS 13.I have apple React native app when the app is not linked with any apple ID, then the flow worked fine for the first time.Tapping on the login button in the app opens up a login webview. On the login web page, clicking on sign in with apple shows IOS native popup to continue with account already linked with the app. When continue button is tapped, a white screen is displayed which freezes on appleid.apple.com and nothing happens.1. The white screen was actually happening due to security reasons. As per Charles log analysis, when auth/apple endpoint is navigated from appleid.apple.com and Referer - https://appleid.apple.com/auth/authorize?client_id=clientId&redirect_uri=https%3A%2F%2Fqa-login.abc.com%2Fauth%2Fapple&response_type=code&scope=openid%20name%20email&state=vD_JRPr950F_HohfO5TnVBymVQdYoYXYb8wPPDn1tT0h7QXszEtytRy0dGMn24YrCVIwKGszXPSI9NS0G6YHmxpPU_2Qh1YdU6wgHODiZxdSNbA8Tn-IlGJFToYTlUNPPu6EFEEuPRmBYO0Dnd5mN5NQeAHMIuPK0KT-BhqsLE7tD9bV4
Hi All,In my scenario i need to open secured .aspx page in WKWebView. I'm doing it by setting required cookies to webview configuration instance while its creation. Its working fine and i'm able to open secured web page in WKWebView. But if i tried to open the page multiple times by moving back and fro, its getting failed every 5th or 6th time. However its working fine with UIWebView all the time.Below is my implementation:I have taken a global instance of my WKWebsiteDataStores e.g. in AppDelegateSolution Reference: https://forums.developer.apple.com/message/335518#335518//Inside my ViewController class //Calling let appDelegate = UIApplication.shared.delegate as! AppDelegate appDelegate.nonPersistentStore?.httpCookieStore.getAllCookies({ (cookies) in self.loadWebViewUsing(cookies: cookies) }) //Load Request func loadWebViewUsing(cookies: [HTTPCookie]) { let webConfiguration: WKWebViewConfiguration = WKWebViewConfiguration() let groupDispatch = DispatchGroup() let
I'm not sure this is critical for your issue, but why do you instantiate `WKWebsiteDataStore` and `WKWebView` at each time you call `loadWebViewUsing(cookies:)` ?Once you get a WKWebsiteDataStore containing the required cookies, you can keep it somewhere and use it repeatedly.
Topic:
Programming Languages
SubTopic:
Swift
Tags: