Skip to content

Commit 0cf267c

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

9 files changed

Lines changed: 1062 additions & 37 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
@@ -156,7 +156,7 @@ Supported auth modes:
156156
| Plaintext | Local development or a trusted reverse proxy boundary. |
157157
| Unauthenticated local users | Trusted Kubernetes dev or fully trusted proxy deployments only. |
158158
| Cloudflare JWT | Edge-authenticated deployments where Cloudflare Access supplies identity. |
159-
| OIDC | Bearer-token auth for users, with browser PKCE or client credentials login. |
159+
| OIDC | Bearer-token auth for users, with browser PKCE or client credentials login. JWKS validation accepts RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384, and EdDSA (Ed25519) signing keys. |
160160

161161
The CLI persists the scopes requested during OIDC login in gateway metadata and
162162
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
@@ -121,8 +121,10 @@ bundled-z3 = ["openshell-prover/bundled-z3"]
121121
test-support = []
122122

123123
[dev-dependencies]
124+
base64 = { workspace = true }
124125
hyper-rustls = { version = "0.27", default-features = false, features = ["native-tokio", "http1", "tls12", "logging", "ring"] }
125126
rcgen = { version = "0.13", features = ["crypto", "pem"] }
127+
rsa = "0.9"
126128
tokio-tungstenite = { workspace = true }
127129
futures-util = "0.3"
128130
wiremock = "0.6"

0 commit comments

Comments
 (0)