From 991624c89d2d850f562a4ba571e929a1bc2a0f6d Mon Sep 17 00:00:00 2001 From: Anant Vindal Date: Fri, 14 Aug 2026 14:53:59 +0530 Subject: [PATCH] remove prompt=consent from oidc scope --- src/handlers/http/oidc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/http/oidc.rs b/src/handlers/http/oidc.rs index 791a2d7a8..b822db408 100644 --- a/src/handlers/http/oidc.rs +++ b/src/handlers/http/oidc.rs @@ -96,7 +96,7 @@ pub async fn login( let scope = PARSEABLE.options.scope.to_string(); let mut auth_url: String = client.read().await.auth_url(&scope, Some(redirect)).into(); - auth_url.push_str("&access_type=offline&prompt=consent"); + auth_url.push_str("&access_type=offline"); return Ok(HttpResponse::TemporaryRedirect() .insert_header((actix_web::http::header::LOCATION, auth_url)) .finish()); @@ -153,7 +153,7 @@ pub async fn login( .await .auth_url(&scope, Some(redirect)) .into(); - auth_url.push_str("&access_type=offline&prompt=consent"); + auth_url.push_str("&access_type=offline"); HttpResponse::TemporaryRedirect() .insert_header((actix_web::http::header::LOCATION, auth_url)) .finish()