Skip to content

Commit 86c151b

Browse files
committed
feat(server): support EC and EdDSA keys in OIDC JWKS validation
Signed-off-by: Yuedong Wu <dwcn22@outlook.com>
1 parent df69804 commit 86c151b

6 files changed

Lines changed: 869 additions & 31 deletions

File tree

‎Cargo.lock‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎architecture/gateway.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Supported auth modes:
135135
| Plaintext | Local development or a trusted reverse proxy boundary. |
136136
| Unauthenticated local users | Trusted Kubernetes dev or fully trusted proxy deployments only. |
137137
| Cloudflare JWT | Edge-authenticated deployments where Cloudflare Access supplies identity. |
138-
| OIDC | Bearer-token auth for users, with browser PKCE or client credentials login. |
138+
| OIDC | Bearer-token auth for users, with browser PKCE or client credentials login. JWKS validation accepts RS256, ES256, ES384, and EdDSA (Ed25519) signing keys. |
139139

140140
The CLI persists the scopes requested during OIDC login in gateway metadata and
141141
reuses them when refreshing an access token. This preserves the intended API

‎crates/openshell-server/Cargo.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ bundled-z3 = ["openshell-prover/bundled-z3"]
113113
test-support = []
114114

115115
[dev-dependencies]
116+
base64 = { workspace = true }
116117
hyper-rustls = { version = "0.27", default-features = false, features = ["native-tokio", "http1", "tls12", "logging", "ring", "webpki-tokio"] }
117118
rcgen = { version = "0.13", features = ["crypto", "pem"] }
119+
rsa = "0.9"
118120
tokio-tungstenite = { workspace = true }
119121
futures-util = "0.3"
120122
wiremock = "0.6"

0 commit comments

Comments
 (0)