commit 878191e63efc53b159f4b4e89a43410af68db638
parent a8d98a6b38520c91830a928318283bb02269c0eb
Author: Henrique Chan Carvalho Machado <henriqueccmachado@tecnico.ulisboa.pt>
Date: Tue, 25 Nov 2025 11:10:13 +0100
oauth2_gateway: fix auth code missing in webhook post
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/oauth2_gateway/src/handlers.rs b/oauth2_gateway/src/handlers.rs
@@ -503,6 +503,7 @@ pub async fn notification_webhook(
let client_notification = ClientNotification {
nonce: session_data.nonce.clone(),
status: status_str.to_string(),
+ code: authorization_code.clone(),
verification_id: webhook.verification_id,
timestamp: webhook.timestamp.clone(),
};
diff --git a/oauth2_gateway/src/models.rs b/oauth2_gateway/src/models.rs
@@ -62,7 +62,8 @@ pub struct NotificationRequest {
#[derive(Debug, Serialize)]
pub struct ClientNotification {
pub nonce: String,
- pub status: String, // "verified" or "failed"
+ pub status: String,
+ pub code: String,
pub verification_id: Uuid,
pub timestamp: String,
}