Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
41 lines (37 loc) · 1.41 KB
/
Copy pathCargo.toml
File metadata and controls
41 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[package]
name = "pam_oauth2_device"
version = "0.4.3"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "PAM module that provides OAuth2.0 Device Authorization Grant"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "pam_oauth2_device"
crate-type = ["cdylib", "lib"]
[dependencies]
chrono = "0.4.45"
dtor = "1.0.6"
log = "0.4.33"
#oauth2 = {version = "4.4.2", features = ["curl"]}
oauth2 = {version = "5.0.0", features = ["curl"]}
# Using own fork of pam-bindings because the original lib causes mem leaks and has bug in release mode.
# See https://crates.io/crates/pam-bindings for more info.
#pam-bindings = { git = "https://github.com/Nithe14/pam-rs.git" }
pam-bindings = "0.3.0"
qrcode = "0.14.1"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
serde_with = "3.22.0"
simplelog = "0.12.2"
url = { version = "2.5.8", features = ["serde"] }
[dev-dependencies]
mockito = "1.7.2"
[package.metadata.generate-rpm]
name = "pam_oauth2_device.so"
assets = [
{ source = "target/release/libpam_oauth2_device.so", dest = "/usr/lib64/security/pam_oauth2_device.so", mode = "755" },
{ source = "conf/device-flow-auth", dest="/etc/pam.d/device-flow-auth", mode = "644" },
{ source = "example-config.json", dest = "/etc/pam_oauth2_device/example-config.json", mode = "644" }
]
[package.metadata.generate-rpm.requires]
pam-devel = "*"