generated from phundrak/rust-poem-openapi-template
Lucien Cartier-Tilet
9489f78224
Some checks failed
CI / tests (push) Failing after 3m53s
For now, only a basic implementation of OAuth with Discord is implemented. If the user calls the Discord signin endpoint, they get redirected to Discord’s OAuth page. Once they accept, they get redirected back to the backend’s callback API endpoint. The token the user got from Discord is stored in the user’s session. When the user wants to log out, the user’s session’s token is wiped. This commit also updates the dependencies of the project. It also removes the dependency lettre as well as the mailpit docker service for developers as it appears clearer this project won’t send emails anytime soon.
49 lines
1.4 KiB
TOML
49 lines
1.4 KiB
TOML
[package]
|
|
name = "gege-jdr-backend"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
authors = ["phundrak"]
|
|
rust-version = "1.78"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "gege-jdr-backend"
|
|
|
|
[dependencies]
|
|
chrono = { version = "0.4.38", features = ["serde"] }
|
|
config = { version = "0.14.1", features = ["yaml"] }
|
|
dotenvy = "0.15.7"
|
|
oauth2 = "4.4.2"
|
|
quote = "1.0.37"
|
|
reqwest = { version = "0.12.9", default-features = false, features = ["charset", "h2", "http2", "rustls-tls", "json"] }
|
|
serde = "1.0.215"
|
|
serde_json = "1.0.133"
|
|
thiserror = "1.0.69"
|
|
tokio = { version = "1.41.1", features = ["macros", "rt-multi-thread"] }
|
|
tracing = "0.1.40"
|
|
tracing-subscriber = { version = "0.3.18", features = ["fmt", "std", "env-filter", "registry", "json", "tracing-log"] }
|
|
uuid = { version = "1.11.0", features = ["v4", "serde"] }
|
|
|
|
[dependencies.poem]
|
|
version = "3.1.3"
|
|
default-features = false
|
|
features = ["csrf", "rustls", "cookie", "test", "session"]
|
|
|
|
[dependencies.poem-openapi]
|
|
version = "5.1.2"
|
|
features = ["chrono", "swagger-ui", "redoc", "rapidoc", "uuid"]
|
|
|
|
[dependencies.sqlx]
|
|
version = "0.8.2"
|
|
default-features = false
|
|
features = ["postgres", "uuid", "chrono", "migrate", "runtime-tokio", "macros"]
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(tarpaulin_include)'] }
|