kych

OAuth 2.0 API for Swiyu to enable Taler integration of Swiyu for KYC (experimental)
Log | Files | Refs

commit 0e0599394a47bc2fe5fa55135782694d0ed48629
parent e8c9a4168f10f8396e5131d3c03aab423bdc0295
Author: Henrique Chan Carvalho Machado <henriqueccmachado@tecnico.ulisboa.pt>
Date:   Tue,  9 Dec 2025 11:32:02 +0100

oauth2_gateway: fix incorrect state usage in webhook handler

Diffstat:
Moauth2_gateway/src/handlers.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oauth2_gateway/src/handlers.rs b/oauth2_gateway/src/handlers.rs @@ -681,13 +681,13 @@ pub async fn notification_webhook( // Construct GET request URL: redirect_uri?code=XXX&state=YYY let redirect_uri = session_data.redirect_uri.as_ref() .unwrap_or(&session_data.webhook_url); - let state = session_data.state.as_deref().unwrap_or(""); + let oauth_state = session_data.state.as_deref().unwrap_or(""); let webhook_url = format!( "{}?code={}&state={}", redirect_uri, authorization_code, - state + oauth_state ); // Update session, create auth code, and queue webhook (GET request, empty body)