Skip to content

SwiftUI/macOS Auth: "[App] wants to use your confidential information stored in 'com.firebase.FIRInstallations.installations' in your keychain." #8950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alelordelo opened this issue Nov 9, 2021 · 11 comments · Fixed by #9102
Assignees
Labels
api: auth closed-by-bot macOS Issues or feature requests for macOS. needs-info no-recent-activity SwiftUI Issues directly related to Apple's SwiftUI framework

Comments

@alelordelo
Copy link

alelordelo commented Nov 9, 2021

Step 1: Describe your environment

Xcode version: Version 13.1 (13A1030d)
Firebase SDK version: 8.9.1
Installation method: Swift Package Manager
Firebase Component: Auth

Step 2: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur?
When build on MacOS, user sees permissions popup saying, "[App] wants to use your confidential information stored in 'com.firebase.FIRInstallations.installations' in your keychain."

Relevant Code:

// TODO(you): code here to reproduce the problem
@ncooke3
Copy link
Member

ncooke3 commented Nov 9, 2021

Running certain Firebase SDKs on macOS will present this prompt if the SDK requests keychain access. This occurs because these platforms do not use a sandboxed keychain (like iOS) and instead use the primary keychain. To dismiss the prompt, enter the requested password and select Always allow.

This prompt should only appear during development builds and shouldn't appear to a user using a release build of your app.

Usually, this prompt can be avoided by signing your application, could you verify that your app is signed?
Also, are you seeing this prompt during SwiftUI preview loads or building/running the app?

@alelordelo
Copy link
Author

Running certain Firebase SDKs on macOS will present this prompt if the SDK requests keychain access.
Which ones? Maybe I could disable those...

To dismiss the prompt, enter the requested password and select Always allow.
Tried that, but then when the password is stored the App crashes every time I open again.

This prompt should only appear during development builds and shouldn't appear to a user using a release build of your app.
I tested on 2 distributions, and both had those prompts:
TestFlight for MacOS
Direct packaged distribution (notarised and signed)

Usually, this prompt can be avoided by signing your application, could you verify that your app is signed?
I'm using "Automatically manage signing". Is that what you mean?

Also, are you seeing this prompt during SwiftUI preview loads or building/running the app?
Building/running and also distribution via TestFlight

@ncooke3 ncooke3 self-assigned this Nov 9, 2021
@alelordelo
Copy link
Author

Update @ncooke3 ,

After fixing this:
#8947 (comment)

I then tested again via TestFlight for Mac, and the problem persists.
We are preparing App Store submission and need to get this fixed. Any idea what could be causing this?

@ncooke3
Copy link
Member

ncooke3 commented Nov 11, 2021

What Firebase SDKs are you using in your app? Are you using Firebase Analytics?

Additionally, are you testing your mac app from TestFlight on the same machine you are developing it on?

@alelordelo
Copy link
Author

What Firebase SDKs are you using in your app? Are you using Firebase Analytics?
Screenshot 2021-11-11 at 16 12 21

Additionally, are you testing your mac app from TestFlight on the same machine you are developing it on?
Tested on different machine

.

@ncooke3
Copy link
Member

ncooke3 commented Nov 11, 2021

Thanks for the info! Another question: do all the keychain prompts say "[App] wants to use your confidential information stored in 'com.firebase.FIRInstallations.installations' in your keychain." or are you seeing other prompts with other messages.

@paulb777 paulb777 added macOS Issues or feature requests for macOS. SwiftUI Issues directly related to Apple's SwiftUI framework labels Nov 12, 2021
@google-oss-bot
Copy link

Hey @alelordelo. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@alelordelo if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@kamilpowalowski
Copy link
Contributor

@alelordelo Hey, did you manage to fix that? I have the same issue (+ additionally keychain access prompt from Share Extension).

@alelordelo
Copy link
Author

I don't remember, but believe I fixed with this:
#8947 (comment)

@kamilpowalowski
Copy link
Contributor

@alelordelo Thank you. I don't have scenePhase used in the app, so that's not a solution for me. But thank you for your time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: auth closed-by-bot macOS Issues or feature requests for macOS. needs-info no-recent-activity SwiftUI Issues directly related to Apple's SwiftUI framework
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants