Skip to content

Commit c689c7b

Browse files
authored
Merge pull request #337 from himmelblau-idm/stable-0.8.x_rust_sso
Stable 0.8.x Rewrite the sso code in Rust
2 parents 249ba5f + 3e6decf commit c689c7b

File tree

7 files changed

+584
-635
lines changed

7 files changed

+584
-635
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ members = [
1919
resolver = "2"
2020

2121
[workspace.package]
22-
version = "0.8.0"
22+
version = "0.8.1"
2323
authors = [
2424
"David Mulder <[email protected]>"
2525
]
26-
rust-version = "1.66"
26+
rust-version = "1.70"
2727
edition = "2021"
2828
license = "GPL-3.0-or-later"
2929
homepage = "https://github.com/himmelblau-idm/himmelblau"
@@ -69,7 +69,7 @@ serde_with = "3.1.0"
6969
time = { version = "^0.3.21", features = ["formatting", "local-offset"] }
7070
url = "^2.4.0"
7171
urlencoding = "2.1.3"
72-
uuid = "^1.4.1"
72+
uuid = { version = "^1.4.1", features = ["v4"] }
7373
webauthn-rs-proto = "0.5.0"
7474
kanidm_proto = { path = "./src/proto" }
7575
openssl-sys = "^0.9"

src/sso/Cargo.toml

+14-6
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,22 @@ license.workspace = true
99
homepage.workspace = true
1010
repository.workspace = true
1111

12+
[[bin]]
13+
name = "linux-entra-sso"
14+
path = "src/main.rs"
15+
16+
[dependencies]
17+
clap.workspace = true
18+
serde.workspace = true
19+
serde_json.workspace = true
20+
tokio.workspace = true
21+
uuid.workspace = true
22+
zbus = "5.2.0"
23+
1224
[package.metadata.deb]
1325
name = "himmelblau-sso"
14-
depends = ["python3-pydbus"]
1526
assets = [
16-
["src/linux-entra-sso.py", "usr/bin/linux-entra-sso", "755"],
27+
["target/release/linux-entra-sso", "usr/bin/linux-entra-sso", "755"],
1728
["src/firefox/linux_entra_sso.json", "usr/lib/mozilla/native-messaging-hosts/", "644"],
1829
["src/firefox/policies.json", "etc/firefox/policies/", "644"],
1930
["src/chrome/linux_entra_sso.json", "etc/opt/chrome/native-messaging-hosts/", "644"],
@@ -26,7 +37,7 @@ assets = [
2637
[package.metadata.generate-rpm]
2738
name = "himmelblau-sso"
2839
assets = [
29-
{ source = "src/linux-entra-sso.py", dest = "/usr/bin/linux-entra-sso", mode = "755" },
40+
{ source = "target/release/linux-entra-sso", dest = "/usr/bin/linux-entra-sso", mode = "755" },
3041
{ source = "src/firefox/linux_entra_sso.json", dest = "/usr/lib64/mozilla/native-messaging-hosts/", mode = "644" },
3142
{ source = "src/firefox/policies.json", dest = "/etc/firefox/policies/", mode = "644" },
3243
{ source = "src/chrome/linux_entra_sso.json", dest = "/etc/opt/chrome/native-messaging-hosts/", mode = "644" },
@@ -35,6 +46,3 @@ assets = [
3546
{ source = "src/chrome/policies.json", dest = "/etc/opt/chrome/policies/managed/himmelblau.json", mode = "644" },
3647
{ source = "src/chrome/policies.json", dest = "/etc/chromium/policies/managed/himmelblau.json", mode = "644" },
3748
]
38-
39-
[package.metadata.generate-rpm.requires]
40-
python3-pydbus = "*"

src/sso/LICENSE.md

-327
This file was deleted.

0 commit comments

Comments
 (0)