Search results for

ASWebAuthenticationSession cookie

1,295 results found

Post

Replies

Boosts

Views

Activity

Apple sign-in troubles with use case
Hello, I'm currently struggling to figure out how I can make Apple sign in work with my app configuration. Maybe I'm just dumb, but I really can't figure out what I need to do to make it work. So I have a Next.js app setup server-side rendering my React frontend, and on a separate server, I have a Node.js (specifically Adonis.js) backend/api which I use to handle auth and sessions. I have both Facebook and Google OAuth2 logins setup and working perfectly, where I'm receiving a code as a query param in my callback url to my frontend, which the client then sends that code to my backend/api, which uses that code with the provider (FB or Google) to get their email, name, and any other data I could use to prevent the user from having to add later, and either create the user and log them in, or just log them in if they already exist using cookies. I don't need any sort of write access to their third party account, or anything more than reading their name and email so they don't have to enter it themselves,
2
0
3.1k
Nov ’21
How to download a PDF via WKWebView but open it in QuickLookPreview?
Hello forum!I have a special problem with my iOS App.My setup is the following:Swift 4 app with minimum target iOS 11the app consists more or less of single view with a WKWebView which is connected to the client portal of a health insurancethe client portal provides a login (session cookies) and allows to download pdf documents when logged-inI want the downloades pdf files to be opened in QuickLookPreviewController instead of WKWebView.The customer need is that they want to be able to print or share their documents and I like to use the QuickLookPreview therefore, because it offers the best native feeling for this case.Now to my problem:I managed to download the documents to local storage (temp folder) and to open it in QuickLookPreviewController with a little trick:The response of the download is intercepted (by using webView(..., decidePolicyFor ...)) and the download url is used to trigger a separate download (using URLSession.shared.dataTask(with: downloadUrl)) to iPhone storage, because QuickLoo
Topic: Safari & Web SubTopic: General Tags:
6
0
33k
Nov ’21
How to replicate IndexedDB "Database deleted by request of the user" error in ios14?
I'm using this js package https://www.npmjs.com/package/idb to manage a simple indexedDB implementation on a web app. I'm using the excellent https://www.npmjs.com/package/idb package to manage a simple indexedDB implementation on a web app. I'm having this error UnknownError: Database deleted by request of the user reported to our error reporting system for a significant number of iOS users and I'm having trouble replicating. It seems to have so far only affect users on: Mobile Safari 14.6, 14.4.2, caught by try/catch Instagram webview, iOS 14.7.1 - not caught be try/catch I think the source of the error is this line in webkit https://github.com/WebKit/WebKit/blob/e98ff129bc8eba06ac17105f19c5f0e142aab853/Source/WebCore/Modules/indexeddb/shared/IDBError.h#L40 It seems to relate to the server connection closing. Can anyone help me understand what conditions are required to trigger this error so that I can replicate and try to handle in the app? A simplified version of the implementation: // ./store.js import {
1
0
3.8k
Oct ’21
Reply to Safari Tech Preview 126 - Tab groups not saved/synced
I actually have the opposite issue: I've created several tab groups during Monterey beta and now those tab groups and the tabs within them are stuck in that initial version and I cannot update them anymore. I close a tab and quit Safari, next time I open it it's back where it was. I move tabs into the default tab group (did this with all tab groups), next time I start Safari the tab groups are back there, closed tabs reappear, newly opened tabs disappear. I cannot get Safari to save the tab and tab group setup no matter what - tried deleting cookies, history, local storage...
Topic: Safari & Web SubTopic: General Tags:
Oct ’21
ASWebAuthenticationSession's callbackURLScheme crash
Hi All, We have started seeing crash with iOS 14.5 for ASWebAuthenticationSession's callbackURLScheme. Is anybody seeing the issue? Is this an intentional change in iOS or a bug? AuthenticationSession] The provided scheme is not valid. A scheme should not include special characters such as : or /.** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The provided scheme is not valid. A scheme should not include special characters such as : or /.' Regards, Nimesh
8
0
8.7k
Feb ’22
Reply to How to get "Additional Permissions Requested" header with iOS Safari extension?
Update: @bramiam Not sure, but have you tried with a real device? In the simulator, my extension doesn't ask about additional permissions, but I tried it on the real device and it requested permissions... From my manifest: content_scripts: [{ run_at: document_idle, all_frames: true, match_about_blank: true, js: [ xxx.js ], css: [ xxx.css ], matches: [ ] },{ js: [ xxx.js ], matches: [ ] }], permissions: [ tabs, cookies, storage, https://xxxxxxx.com, http://*/*, https://*/* ],
Topic: App & System Services SubTopic: General Tags:
Oct ’21
Extensible SSO and sample code
Much of the What's new in Managing Devices session was spend on Extensible SSO, which seems very interesting. https://developer.apple.com/documentation/devicemanagement/extensiblesinglesignonssoI understand that this is not the same as Sign in with Apple.Are there resources for sample code for SSO extensions? What's the API that apps will need to take advantage of the SSO extensions? ASWebAuthenticationSession or something else? Specifically, I'm trying to get a sense of how much effort existing apps will need to adopt this system, and how quickly SSO providers will be providing solutions.Thanks!Aaron
9
0
4.9k
Sep ’21
Chrome browser crashes after using ASWebAuthenticationSession
We're seeing Chrome browser crashing after using ASWebAuthenticationSession to authenticate. While the authentication succeeds, all the user's browser tabs are terminated and upon re-opening Chrome, it shows a popup message: Chrome didn’t shut down correctly. System logs indicates that Chrome crashed (core dumped) with a Security Exception with macOS error code -67052.
2
0
1.1k
Sep ’21
Unable to get name and email in the ID Token even when they are requested in the scope
I have setup Login with Apple in my .Net Core Razor Pages app (.Net 5) which is using Microsoft Identity Framework for user management. I followed this tutorial of Scott which helped me as far as the Apple Login page. But after the successful login when the Call-Back endpoint is called, I am getting null in the _signInManager.GetExternalLoginInfoAsync() method call. My initial research suggested that the ID Token may not contain required data. Which is correct because the ID Token returned by the Apple does not contain email or name even though it is requested in the scope. Sample request:https://appleid.apple.com/auth/authorize?client_id=net.demo.client&redirect_uri=https%3A%2F%2Fdemo.website.net%2Fsignin-apple&response_type=code%20id_token&scope=email%20name&response_mode=form_post&nonce=637679-omitted Here's the Authentication setup called from Startup.ConfigureServices() method: IdentityModelEventSource.ShowPII = true; services.AddAuthentication(options => { //options.DefaultAuthent
1
0
1.6k
Sep ’21
I got an error NSOSStatusErrorDomain -66681 with iOS 13.4
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?
1
0
989
Sep ’21
Limitations of Find My app
I've just started using the Find My app and it has limitations I don't like (or maybe I don't understand how to use the app.) On the left side of the app is a pane that contains either People, Devices, or Items. But I can't resize the pane (larger, to the right) to be able to read more data in that pane. Most apps, like Safari, allow me to resize the left pane. Why does this app prohibit that common feature? Also, I'd like each item in the pane to show more information. As it is now, I have to click on the item in the pane then read the details in the pop-up on the right pane, but if that doesn't show what I want, I have to click on the info symbol popup button to get more information. And then the pop-up window is in such a small font on my screen, and the text is printed in a dark-grey on light-grey background, it's very hard to read on a 4K monitor. And the app doesn't let me resize the text (Safari allows me to press keys to make the interface more readable.) Apple makes such a big deal about Accessibilit
1
0
769
Sep ’21
URLSession can access password protected directory without credentials
I am trying to download app content from a password protected directory of a website served by Apache24. The directory is protected using the following configuration segment: <Directory <directory path> AuthType Basic AuthName Restricted Content AuthUserFile <password file path>.htpasswd Require valid-user </Directory> Here is my swift code (running on latest betas of iOS15 or macOS12) class Downloader: NSObject { lazy var downloadSession: URLSession = { // Setup configuration let configuration = URLSessionConfiguration.default configuration.allowsCellularAccess = true configuration.timeoutIntervalForResource = 60 configuration.waitsForConnectivity = true // Add authorisation header to handle credentials let user = ***** let password = ****** let userPasswordData = (user):(password).data(using: .utf8) let base64EncodedCredential = userPasswordData!.base64EncodedString(options: Data.Base64EncodingOptions.init(rawValue: 0)) let authString = Basic (base64EncodedCredential) // Add authorisati
3
0
1.6k
Sep ’21