[package]
edition = "2024"
name = "loopauth"
version = "0.2.0"
authors = ["Josh Clayton <joshua.clayton@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OAuth 2.0 Authorization Code + PKCE flow for CLI applications"
homepage = "https://github.com/joshuaclayton/loopauth"
documentation = "https://docs.rs/loopauth"
readme = "README.md"
keywords = [
"oauth2",
"pkce",
"cli",
"authentication",
"oidc",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshuaclayton/loopauth"
[features]
testing = []
[lib]
name = "loopauth"
path = "src/lib.rs"
[[example]]
name = "auth"
path = "examples/auth.rs"
[[example]]
name = "auth_discovery"
path = "examples/auth_discovery.rs"
[[example]]
name = "jwks_demo"
path = "examples/jwks_demo.rs"
[[example]]
name = "refresh_demo"
path = "examples/refresh_demo.rs"
[[test]]
name = "auth_flow"
path = "tests/auth_flow.rs"
[[test]]
name = "jwks_flow"
path = "tests/jwks_flow.rs"
[[test]]
name = "oidc_discovery"
path = "tests/oidc_discovery.rs"
[[test]]
name = "oidc_flow"
path = "tests/oidc_flow.rs"
[[test]]
name = "refresh_flow"
path = "tests/refresh_flow.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.base64]
version = "0.22"
[dependencies.jsonwebtoken]
version = "10.3"
features = ["aws_lc_rs"]
[dependencies.rand]
version = "0.10"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"form",
]
[dependencies.rsa]
version = "0.9"
features = ["pem"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.subtle]
version = "2.6.1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
features = ["serde"]
[dependencies.uuid]
version = "1"
features = ["v4"]
[dependencies.webbrowser]
version = "1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[lints.clippy]
allow_attributes_without_reason = "deny"
dbg_macro = "deny"
exhaustive_enums = "deny"
exhaustive_structs = "deny"
exit = "deny"
expect_used = "deny"
get_unwrap = "deny"
indexing_slicing = "deny"
map_err_ignore = "deny"
missing_assert_message = "deny"
nursery = "deny"
panic = "deny"
panic_in_result_fn = "deny"
partial_pub_fields = "deny"
pedantic = "deny"
print_stderr = "deny"
print_stdout = "deny"
string_slice = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unseparated_literal_suffix = "deny"
unwrap_in_result = "deny"
use_debug = "deny"
[profile.test.package.num-bigint-dig]
opt-level = 2