From a5dbfd5e6d7a7c3ee96eb910fe8d35752fc753a1 Mon Sep 17 00:00:00 2001 From: imlonghao Date: Thu, 18 Dec 2025 21:53:56 +0800 Subject: [PATCH] OAuth: add device authorization endpoint (#2225) --- crates/http/src/auth/oauth/openid.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/http/src/auth/oauth/openid.rs b/crates/http/src/auth/oauth/openid.rs index 5c97cd14..46d7e677 100644 --- a/crates/http/src/auth/oauth/openid.rs +++ b/crates/http/src/auth/oauth/openid.rs @@ -22,6 +22,7 @@ pub struct OpenIdMetadata { pub userinfo_endpoint: String, pub jwks_uri: String, pub registration_endpoint: String, + pub device_authorization_endpoint: String, pub scopes_supported: Vec, pub response_types_supported: Vec, pub subject_types_supported: Vec, @@ -75,6 +76,7 @@ impl OpenIdHandler for Server { userinfo_endpoint: format!("{base_url}/auth/userinfo"), jwks_uri: format!("{base_url}/auth/jwks.json"), registration_endpoint: format!("{base_url}/auth/register"), + device_authorization_endpoint: format!("{base_url}/auth/device"), response_types_supported: vec![ "code".into(), "id_token".into(),