From 5ceecff34afedf11107a341a719ae1a6cdd2ab48 Mon Sep 17 00:00:00 2001 From: mdecimus Date: Sat, 6 Jan 2024 19:38:39 +0100 Subject: [PATCH] Fixed OAuth verification_uri_complete parameter (fixes #192) --- crates/jmap/src/auth/oauth/device_auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/jmap/src/auth/oauth/device_auth.rs b/crates/jmap/src/auth/oauth/device_auth.rs index 2c1f4082..658e761a 100644 --- a/crates/jmap/src/auth/oauth/device_auth.rs +++ b/crates/jmap/src/auth/oauth/device_auth.rs @@ -111,7 +111,7 @@ impl JMAP { // Build response JsonResponse::new(DeviceAuthResponse { verification_uri: format!("{}/auth", instance.data), - verification_uri_complete: format!("{}/auth/code?={}", instance.data, user_code), + verification_uri_complete: format!("{}/auth/?code={}", instance.data, user_code), device_code, user_code, expires_in: self.config.oauth_expiry_user_code,