-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
52 lines (41 loc) · 1.7 KB
/
Cargo.toml
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
48
49
50
51
52
[package]
publish = false
name = "wasm-oidc-plugin"
version = "0.5.1"
authors = ["WWU Cloud Developer <[email protected]>, Anton Engelhardt <[email protected]>"]
description = "A plugin for the Envoy-Proxy written in Rust. It is a HTTP Filter, that implements the OIDC Authorization Code Flow. Requests sent to the filter are checked for the presence of a valid session cookie. If the cookie is not present, the user is redirected to the authorization_endpoint to authenticate. After successful authentication, the user is redirected back to the original request with a code in the URL query. The plugin then exchanges the code for a token using the token_endpoint and stores the token in the session. If the cookie is present, the plugin validates the token and passes the request to the backend, if the token is valid (optional)."
license = "Apache-2.0"
edition = "2018"
[lib]
crate-type = ["cdylib"]
[dependencies]
# logging
log = "0.4.22"
# proxy-wasm
proxy-wasm = "0.2.2"
# parsing
url = { version = "2.5.2", features = ["serde"] }
serde = { version = "1.0.204", features = ["derive"] }
serde_yaml = "0.9.33"
serde_json = "1.0.120"
serde_urlencoded = "0.7.1"
# base64
base64 = "0.22.1"
# regex
regex = "1.10.5"
serde_regex = "1.1.0"
# jsonwebtoken (forked version to support RSA keys longer than 4096 bits)
jwt-simple = {git = "https://github.com/antonengelhardt/rust-jwt-simple", rev = "b92ac707dab1f65fae00569a468793d5eb6dab22"}
# pkce
pkce = "0.2.0"
# aes256
aes-gcm = {version = "0.10.3", features = ["std"]}
# thiserror
thiserror = "1.0.63"
sec = { version = "1.0.0", features = ["serde", "deserialize"] }
[profile.release]
lto = true
opt-level = 3
codegen-units = 1
panic = "abort"
strip = "debuginfo"