tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
79.57k stars 2.36k forks source link

[bug] keychain prompt on MacOS #8662

Open thewh1teagle opened 5 months ago

thewh1teagle commented 5 months ago

Describe the bug

I develop tauri app on MacOS and every time the app restart in dev mode it opens a dialog and asking for password: image

Important info:

  1. It happens on dev mode only, not in production build which I install and open.
  2. I authenticate with twitter.com which uses indexedDB / secure storage
  3. It happens from the second run in dev mode (after the first restart). in the first time it doesn't happen
  4. I can reproduce it in 2 different MacOS computers.
  5. It doesn't happen in regular tauri app, so most probably it's from the use of twitter.com
  6. It's very hard to develop with it as I need to enter my password every reload.

Reproduction

Create tauri app, navigate to twitter and log in. restart the app and navigate to twitter again.

Expected behavior

After the first time you click "Save always" it shouldn't prompt again in dev mode.

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.19.0
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: git+https://github.com/Glitch752/tauri/?branch=feat/multiwebview#e51ea29913f995f03d1f7d3332013c4d1321cb7b (2.0.0-alpha.20)
    - tauri-build [RUST]: no manifest (2.0.0-alpha.13, 2.0.0-alpha.13, 2.0.0-alpha.13)
    - wry [RUST]: 0.35.1
    - tao [RUST]: 0.24.0
    - tauri-cli [RUST]: 1.5.9
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.5.9

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src
    - devPath: ../src

Stack trace

No response

Additional context

I tried to change settings in keychain app, and allow everything, it didn't helped. I tried also to delete the keys in keychain and restart the app and it didn't helped.

An option to disable secure storage in webkit can help. but I can't find such option

wyhaya commented 5 months ago

Related issue: #7930