mirror of
https://github.com/markuryy/shark.git
synced 2025-12-12 11:41:02 +00:00
feat(wip): add tauri-plugin-oauth and enable Spotify oauth
This commit is contained in:
16
src-tauri/Cargo.lock
generated
16
src-tauri/Cargo.lock
generated
@@ -20,6 +20,7 @@ dependencies = [
|
||||
"tauri-plugin-dialog",
|
||||
"tauri-plugin-fs",
|
||||
"tauri-plugin-http",
|
||||
"tauri-plugin-oauth",
|
||||
"tauri-plugin-opener",
|
||||
"tauri-plugin-os",
|
||||
"tauri-plugin-process",
|
||||
@@ -4931,6 +4932,21 @@ dependencies = [
|
||||
"urlpattern",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-oauth"
|
||||
version = "2.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "eda564acdb23185caf700f89dd6e5d4540225d6a991516b2cad0cbcf27e4dcd3"
|
||||
dependencies = [
|
||||
"httparse",
|
||||
"log",
|
||||
"serde",
|
||||
"tauri",
|
||||
"tauri-plugin",
|
||||
"thiserror 1.0.69",
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-opener"
|
||||
version = "2.5.0"
|
||||
|
||||
@@ -39,4 +39,5 @@ futures-util = "0.3.31"
|
||||
tauri-plugin-os = "2"
|
||||
walkdir = "2.5.0"
|
||||
unicode-normalization = "0.1.24"
|
||||
tauri-plugin-oauth = "2.0.0"
|
||||
|
||||
|
||||
@@ -72,12 +72,28 @@
|
||||
},
|
||||
{
|
||||
"url": "https://lrclib.net/**"
|
||||
},
|
||||
{
|
||||
"url": "https://accounts.spotify.com/**"
|
||||
},
|
||||
{
|
||||
"url": "https://api.spotify.com/**"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sql:default",
|
||||
"sql:allow-execute",
|
||||
"process:default",
|
||||
"os:default"
|
||||
"os:default",
|
||||
"oauth:allow-start",
|
||||
"oauth:allow-cancel",
|
||||
{
|
||||
"identifier": "opener:allow-open-url",
|
||||
"allow": [
|
||||
{
|
||||
"url": "https://accounts.spotify.com/*"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -300,6 +300,7 @@ pub fn run() {
|
||||
}];
|
||||
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_oauth::init())
|
||||
.plugin(tauri_plugin_os::init())
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.plugin(
|
||||
|
||||
Reference in New Issue
Block a user