-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (39 loc) · 1.5 KB
/
Cargo.toml
File metadata and controls
47 lines (39 loc) · 1.5 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
42
43
44
45
46
47
[package]
name = "oauth-kit"
version = "0.1.0"
edition = "2021"
description = "OAuth client library with batteries-included provider configurations and axum integration"
license = "Apache-2.0"
repository = "https://github.com/cachix/oauth-kit"
keywords = ["oauth", "oauth2", "oidc", "authentication", "axum"]
categories = ["authentication", "web-programming"]
[features]
default = ["axum-integration", "oidc"]
# Axum web framework integration
axum-integration = ["dep:axum", "dep:axum-extra", "dep:tower-sessions"]
# OpenID Connect support (Google, Auth0, Okta, Keycloak, Azure AD, etc.)
# Enables OIDC discovery, ID token verification, and all OIDC providers
oidc = ["dep:openidconnect"]
[dependencies]
oauth2 = "5"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
thiserror = "2"
async-trait = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
url = "2"
tracing = "0.1"
# Optional OIDC support
openidconnect = { version = "4", optional = true }
# Optional axum integration
axum = { version = "0.8", optional = true }
axum-extra = { version = "0.10", features = ["typed-header"], optional = true }
tower-sessions = { version = "0.14", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
tower-sessions = { version = "0.14", features = ["memory-store"] }
tracing-subscriber = "0.3"
[[example]]
name = "basic"
required-features = ["axum-integration", "oidc"]